Yes, it can see nothing. I wan't to draw the text outside and can see it.

2011/4/28 Romain Guy <[email protected]>:
> You can draw outside, but nothing will happen.
>
> On Wed, Apr 27, 2011 at 9:52 PM, a a <[email protected]> wrote:
>>
>> Dear All,
>>
>> The Canvas class holds the "draw" calls. To draw something, you need 4
>> basic components: A Bitmap to hold the pixels, a Canvas to host the
>> draw calls (writing into the bitmap), a drawing primitive (e.g. Rect,
>> Path, text, Bitmap), and a paint (to describe the colors and styles
>> for the drawing).
>>
>> Above is google SDK document.
>> ----------------------------------------------------------
>>
>> I have a question, I have a small bitmap (50 * 60), init the canvas
>> with this bitmap. Can we only draw text on this scope(50*60)?
>>
>> How can we draw outside this bitmap(50*60) ?
>>
>> I try the canvas.clipRect(0, 0, 512, 512); and want to draw at (100,
>> 150), but it can't work.
>>
>> --
>> 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]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support.  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

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