The raster image is composed of pixels, and you can count the number of pixels in the matrix of raster images, set a limit on the number of raster pixels. In OpenGl I canβt say, but in general we can easily deal with them, there is also a bitmap.inSampleSize () method;
if you appointed
Bitmap.inSampleSize()= 1;
then the original raster pixel will be loaded.
Bitmap.inSampleSize()= 2;
then the pixels will become half the original pixel.
Bitmap.inSampleSize() = 4
then the pixels will become 1/4 of the original pixel. Thus, you can reduce the pixel size in the bitmap, I did it in my program, I hope it will work with you.
Pranav
source share