Android Question Crop bitmap

Shivito1

Active Member
Licensed User
i need to crop screen shot bitmaps continuously. However all the threads I've found use saved images when cropping.
 

Emme Developer

Well-Known Member
Licensed User
Longtime User
I'll give it a try but it looks like it requires me to load a file saved on my device.
Are you able to get ScreenShot? You can use it as bitmap. You don't need a file saved, you can have a bitmap in memory, or download it, or other options.. You for sure need a bitmap by the way
 
Upvote 0

Shivito1

Active Member
Licensed User
Man I can't catch a break with this. I tried a couple times to get it to store it as a bitmap instead of drawing it. However the method I'm using keeps giving me a void error.
How can I get it to store as a bitmap after applying the canvas?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Write stream... (Or stream out, can't remember)
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
I thought that was what you wanted
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
canvas has a method to convert to bitmap, if I recall correctly... But it's been a while since I've used it
 
Upvote 0

Shivito1

Active Member
Licensed User
the only one that sounds correct is
canvas.bitmap
however it does not convert it to a bitmap that I can use. All it allows me to do is WriteToStream.... This will create a file on the device and that is not what I need.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top