fresco icon indicating copy to clipboard operation
fresco copied to clipboard

Does it support custom calculateInSampleSize or custom decode (such as BitmapRegionDecoder) ?

Open leelei opened this issue 11 years ago • 4 comments

leelei avatar Apr 15 '15 05:04 leelei

Not yet, though this could be added. Note that similar functionality can already be done with resizing.

Can you give me an example where that doesn't meet your needs?

tyronen avatar Apr 15 '15 09:04 tyronen

resizing not afford my need. if a image width and height is 440*8000, to avoid "Bitmap too large to be uploaded into a texture" it should resize , if inSampleSize = 4 , width is so small to fit screen, so i need show a part of image, use BitmapRegionDecoder, decode a region : Rect(0, 0, 440, 400)

leelei avatar Apr 16 '15 08:04 leelei

I think this is very similar to https://github.com/facebook/fresco/issues/4

plamenko avatar Apr 17 '15 00:04 plamenko

SubsamplingScaleImageView , but i think it use just to show a single image. I have a ListView ,each item contain image , not sure the size of the picture, some image is about 400 * 400 , some is 440 * 8000, SubsamplingScaleImageView in ListView not work well and smooth

leelei avatar Apr 17 '15 00:04 leelei