[android-developers] Canvas, drawing 10 lines of 1 pixel creates different color than a rectangle of 10 pixel
As title. Can you tell me why when using Canvas I have this strange behaviour? If I draw a rectangle using drawLine() I have different color than if I draw the rectangle using drawRect(). Why? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Canvas, drawing 10 lines of 1 pixel creates different color than a rectangle of 10 pixel
If antialiasing is enabled, that would happen. On Mon, Aug 15, 2011 at 12:28 PM, sblantipodi perini.dav...@dpsoftware.orgwrote: As title. Can you tell me why when using Canvas I have this strange behaviour? If I draw a rectangle using drawLine() I have different color than if I draw the rectangle using drawRect(). Why? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Romain Guy Android framework engineer romain...@android.com -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Canvas drawing
Hi all. When overiding onDraw() in my View, is it possible to say Don't draw anything new, just keep what was there the last time? In my app, I only want to draw when I get a sensor change. These changes come intermittently. However the draw() routine is being called continuously, many times per second, and is causing a lot of overhead. I want to hold the last screen output until I have new readings to pass in. Is this possible? -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en