How To Disable Anti-aliasing When Scaling Up An Imageview In Android?
I have a pixel art that I want to scale up. The problem is when I scale it up, it gets all blurred cause of the antialiasing. Is there a way to disable antialiasing directly from x
Solution 1:
i hope its useful
BitmapbmpSource= BitmapFactory.decodeResource(getResources(), SourceFileId);
//100 is dimension to resizing image size//Passing filter = false will result in a blocky, pixellated image.//Passing filter = true will give you smoother edgesBitmapbmpScaled= Bitmap.createScaledBitmap(bmpSource, 100, 100, false);
ImageViewimg= (ImageView) findViewById(Your imageView Control Id);
img.setImageBitmap(bmpScaled);
is this what u want!?
Post a Comment for "How To Disable Anti-aliasing When Scaling Up An Imageview In Android?"