Just modify the code to keep track of the bounds.

On Wed, Apr 22, 2009 at 1:19 AM, zhangxiyuan <[email protected]> wrote:

>
> Hi everybody,
>
> I got a question about the Android ApiDemos->Graphics->FingerPaint
> demo. By using finger touch the screen, I can draw lines, of course, i
> can use the lines to make up of letters, english or chinese or
> japanese. Now I wonder if I can get the bounds of what I have drawn.
> For example, the canvas' size is 200x100, and I draw some lines, which
> located at a rectangle of 100x50, Is there a way that I can get the
> (startX, startY, width, height) value?
>
> The reason I want to get that value is I want to save the drawing to
> little pictures, I do not want to have the blank edge of the canvas.
>
> One more question: If I want to save the drawing, should I save it to
> database or file system? If I will do a lot of the drawings and I will
> display the pictures later.
>
> Thanks in advance.
> I searched in the group and can not found very similar topics, so I
> posted this one, if anyone of you have a link, I will be appreciated
> for telling me that.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  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
-~----------~----~----~----~------~----~------~--~---

Reply via email to