[android-developers] Canvas clipping question?

2011-08-13 Thread Mark Ayers
Sorry if this is obvious, but I can't tell from the documentation what the various Canvas.clipWhatever methods do. I'm looking for a method that will allow me to select a certain area, hopefully somewhat like Photoshop, and I'm wondering if this is what I've been looking for. -- You received

Re: [android-developers] Canvas clipping question?

2011-08-13 Thread Romain Guy
Hi, What do you mean by select a certain area? What are you trying to accomplish? Setting the clip on a Canvas lets you restrict drawing to a particular area. For instance, if the clip rectangle is 100,100,200,200, a point drawn at 300,300 (outside of the clip) will not appear on screen. On Sat,

Re: [android-developers] Canvas clipping question?

2011-08-13 Thread Mark Ayers
What I mean is I want a tool that can define a certain area, so that all drawing is restricted to that area. It sounds like this is what I need. On Sat, Aug 13, 2011 at 8:29 PM, Romain Guy romain...@android.com wrote: Hi, What do you mean by select a certain area? What are you trying to

Re: [android-developers] Canvas clipping question?

2011-08-13 Thread Romain Guy
It's exactly what you need. Note that with software rendering you can create clipping regions (i.e. non-rectangular clipping areas) but with the hardware accelerated 2D pipeline in 3.0 you are restricted to rectangles. On Sat, Aug 13, 2011 at 8:40 PM, Mark Ayers markthe...@gmail.com wrote: What