On Sep 2, 5:50 pm, "A.TNG" <tang.j...@gmail.com> wrote:
> Hi,
>
> In my application, I will get a instance ofandroid.graphics.picture
> which is populated by user. Then I use writeToStream to save. After
> save, I have to check the file size. If the size is too large, then I
> should delete this file.
>
> I think this save-check-delete operation is not reasonable. I prefer
> to check the size ofandroid.graphics.picture. If the size is too
> large, I should not save to local. But I checkedandroid.graphics.picture, it 
> only have getHeight and getWidth member
> functions.
>
> Could I get the size ofandroid.graphics.picture?
>

It seems the only way is to add your own getSize() member function.
Please refer to skia library, class SkPicture, macro SK_DEBUG_SIZE.
You could find more information.

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

Reply via email to