'How to disable anti-aliasing in the image using the Panalleum library

I have images loading with some issue. I am using Panalleum library to load the images.

enter image description here

If I zoom out and see the same image, there you would see some small dots creating lines. This is related to Anti-Aliasing.

enter image description here

How can I fix this blurriness or lines on the image?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source