skgmn / RapidDecoder

Simplified bitmap decoding and scaling for Android
Apache License 2.0
261 stars 43 forks source link

Problem with scaling with region decoding #2

Closed SammyVimes closed 10 years ago

SammyVimes commented 10 years ago

Say I have 690*10700 image. I want to show it's top part (0;0) - (690;1200). I have variable "regional" in executeDecoding method of BitmapLoader set to false. But it is obviously wrong.

skgmn commented 10 years ago

Yes it was obviously a bug. Fixed it. https://github.com/suckgamony/RapidDecoder/commit/2a044eaae71b4c090064d81063dd2607faea1fc9

SammyVimes commented 10 years ago

Thanks!

ganeshdroid commented 9 years ago

I'm using this library to get a bitmap from Inputstream. I'm using the below lines: decoder = BitmapDecoder.from(content.getPanelNav().getImageStream(index)).scaleBy(0.5f); bitmap = decoder .scale(getDeviceWidth(), getDeviceHeight()) .useBuiltInDecoder(true) .decode(); It is always giving "OutOfMemoryError", even if the image is in large size(6 MB)or small size(1-3MB). Can you please suggest me what is the issue here.

danielgomezrico commented 9 years ago

Any updates from this?