What does "look horrible" mean?  Your bitmaps are being scaled?  Note that
you really really want to scale your bitmaps at load time, not draw time,
so you can turn on important things like bilinear interpolation when
scaling without impacting your draw performance.

On Tue, Aug 21, 2012 at 3:29 PM, Jhon <[email protected]> wrote:

> I have read the "screen support API guide "(
> http://developer.android.com/guide/practices/screens_support.html) and
> much more resources, but I cannot understand how the dpi works.
>
> I'm developing a game, and I'm not using any layouts (I'm going to draw
> all myself with functions like canvas.drawbitmap). But when I use the
> Canvas.Drawbitmap function I need to specify the pixels of the screen where
> I want to draw the image.
>
> So I'm working now with a fixed resolution (800x480) and I'm using the
> drawable-nodpi folder and adjusting the canvas later if the screen of the
> phone is wider or narrow. The problem with that is that the images look
> horrible when the resolution is not the native one (800x480).
>
> What can I do to solve this problem? I've read and read during 3 days, but
> all explanations and examples are related to Layouts, Nine Patches and so.
>
> Thank you very much.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to