[android-developers] Re: Custom View question
I mean the bitmap that I'm drawing into the canvas I suppose. In the
code I get the bitmap from a decodeResource(..) call, and then in the
onDraw I draw that bitmap into the canvas with the current matrix
(which is manipulated when the screen is touched). Are you only able
to draw to the campus? I need the dot to stay where it should be on
the bitmap. i.e. if your current location translates to pixel
coordinates(220, 660), I need it to draw the dot on the bitmap's
coordinate (220, 660), not the phone's screen coordinate (my phone has
resolution 480 x 854). So if I'm able to draw that dot onto the
bitmap, then I can just draw it onto the canvas without worrying about
the scale or if the dot is off screen etc.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home