How could I get the size of android.graphics.picture

by A.TNG » Wed, 02 Sep 2009 17:50:59 GMT


Sponsored Links
 Hi,

In my application, I will get a instance of android.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 of android.graphics.picture. If the size is too
large, I should not save to local. But I checked
android.graphics.picture, it only have getHeight and getWidth member
functions.

Could I get the size of android.graphics.picture?

Thanks for help,
Jiyu
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Create TabBar in android at the bottom

Hello all,
how i create a TabBar in android at the botom of the page.
i have gone through some examples in google, but not
get the proper one.

anybobdy have gone through the same problem may help me.

anybody's help will be appreciated.

Thanks in advance,

Regards
Subrat

-- 

2. Picking an activity

I am using ACTION_PICK_ACTIVITY to have users pick an
app from a list.  But how do you get the 'Use by default...'
checkbox to show up at the bottom of the dialog?

-- 

3. User ID of purchaser

4. Multi stroke gestures not recognized when last stroke is vertical

5. Setting up a user account on an AVD

6. how to add wifi to my android platform

7. Camera not working on Nexus One