GabrielBB / Android-CutOut

Android image background removing library
Other
264 stars 90 forks source link

Question: resizeBitmap #19

Open tigerss opened 4 years ago

tigerss commented 4 years ago

Hi, from the source code it seems that when the DrawView size is changed the image bitmap is resized. I think it's possible to directly draw the original scaled bitmap on Canvas like you did in resizeBitmap

canvas.drawBitmap(bitmap, transformation, paint);

Is there any reason to create another bitmap from the original one for resizing?

brittle123 commented 3 years ago

@tigerss how to get original image's width and height ?