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. cracked screen

I saw this app called cracked screen that basically overlays a bitmap
on the screen and makes it look cracked as a joke.  Somehow the app
continues to put the crack on the screen even as the user continues to
use the phone.  Anyone know how to do this?

-- 

2. Password Manager For Ipad and other fPlatforms

-- 

3. In a Native C program, how to call java API: ActivityManager::getMemoryInfo()

4. Query on Programming Model in Recorder

5. berapa versi terbaru gtab?

6. ROM Blesingdragon v1.6a on Optimus 2X

7. [WTI] [OOT] 10 Website Flash Paling Atraktif 2011