Skip to content Skip to sidebar Skip to footer

Imageview With Squared Pixels (without Interpolation)

I have a bitmap of 9X11 pixels representing a maze with the path in green, walls in black, start in orange and blue end. it matrix is: int[][] map = new int[][] { { 1,

Solution 1:

If you want an image view to scale without antialiasing, what you really need to do is get a BitmapDrawable. Example:

BitmapDrawable bd = new BitmapDrawable(activity.getResources(), bitmap);
bd.setAntiAlias(false);

Post a Comment for "Imageview With Squared Pixels (without Interpolation)"