Is it possible to crop an image without loading entire bitmap?

Widget

Well-Known Member
Licensed User
Longtime User
I need to crop a bitmap at a particular rectangle location. Is there a way to do this without loading the entire bitmap into memory? For example, I'd like to extract the bitmap at location (500, 500, 1000, 1000). I can do this just fine if I load the entire bitmap (or use InitializeSample). But does Android have a way of loading just part of the bitmap (rectangular region)?

TIA
Widget
 
What about PNG files?

What about PNG files? Is there any way of doing it with PNG files? Loading a part of PNG file without reading all of it to stay away from the memory limits...
 
Upvote 0
I tried the code, got an error:

B4A version 4.30
Parsing code. 0.02
Compiling code. 0.03

ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code. Error
Der Wert darf nicht NULL sein.
Parametername: input
Error File: layout.bal

Go to the designer script page to debug this error.

Peter
 
Upvote 0
Back
Top