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 <[email protected]> wrote:

> 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 <[email protected]> wrote:
>
>> 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, Aug 13, 2011 at 8:26 PM, Mark Ayers <[email protected]> wrote:
>>
>>>  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 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
>>
>>
>>
>>
>> --
>> Romain Guy
>> Android framework engineer
>> [email protected]
>>
>>  --
>> 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
>
>
>  --
> 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




-- 
Romain Guy
Android framework engineer
[email protected]

-- 
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