I tested your revised procedure, and the extension image is 97x97px instead of 256x256px (this size returned by directly loading the image with the image.picture block).
What I meant was that if someone uses your extension on a screen with a density greater than 2.x, then the image will be larger.
then is the fix to my existing code:
//resize the source bitmap using device density
source = Bitmap.createScaledBitmap(source, width*iDensity/iDensity, height*iDensity/iDensity, false);
?
It works!
Will try without iDensity at all
source = Bitmap.createScaledBitmap(source, width*iDensity/iDensity, height*iDensity/iDensity, false);
This is the same as this
source = Bitmap.createScaledBitmap(source, width, height, false);
Will work on most screens.
It does work
source = Bitmap.createScaledBitmap(source, width, height, false);
Is that better ? ![]()
1 Like
Thanks for your help Patryk, will update extension and documentation.
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.