Android Question Interpolating a Image

Fusseldieb

Active Member
Licensed User
Longtime User
Hello,
I want to make a 8-Bit-Like LWP and to save space, I need to disable the intepolating on small images when stretched. Is there's any way to disable the interpolating to show the pixels of the stretched image?

Thanks in advance ;)
 

Fusseldieb

Active Member
Licensed User
Longtime User
I have searched all over the nternet and found nothing that could help.
If there's no way to do this, is there a way to "draw" pixel per pixel or is this wsting ressources?
 
Upvote 0

Informatix

Expert
Licensed User
Longtime User
The pixelated aspect can be kept by disabling the linear filter when the image is reduced. You can do this easily with the libGDX lib. You just have to set the texture filter to Nearest. It's shown in the Filters demo of the library. If you want to simulate a low resolution screen, it's a bit more complicated. You have to use a shader combined to a mipmap chain. It's demonstrated in a demo of the SpecialFX plugin for libGDX.
 
Upvote 0
Top