hoffstadt / DearPyGui

Dear PyGui: A fast and powerful Graphical User Interface Toolkit for Python with minimal dependencies
https://dearpygui.readthedocs.io/en
MIT License
13.06k stars 678 forks source link

Disable Anti-Aliasing On Images #1469

Open Moonspire opened 2 years ago

Moonspire commented 2 years ago

Is your feature request related to a problem? Please describe. I'm working on a toolkit for developing Minecraft content and have started work on a texture editor, all the functionality works fine within DearPyGui but the textures appear to have some form of anti-aliasing applied to them thus making them appear blurry given their low resolution.

Describe the solution you'd like Some way of rendering pixelated/low res images upscaled without any anti-aliasing or texture blending would be fantastic

Describe alternatives you've considered I've tried this both with normal images and drawing the image in the drawing api, both netted the same result

Additional context Texture file is 128x128 pixels, displayed upscaled to 800x800, and was made in my dearpygui software and edited there as well. Desired outcome is to eliminate the blurry look of the pixels to make a crisp image. I did find the requests for similar on fonts from a while ago but nothing there seemed to prove useful in this instance. image

west-rynes commented 2 years ago

There is an existing feature request for textures for what you are wanting #773

hoffstadt commented 2 years ago

As @kuchi mentioned, this is a long awaited feature. I just bumped the priority to High. We would like to add this very soon. The idea is to add sampler settings, mipmap control, etc.

Moonspire commented 2 years ago

That sounds fantastic. thanks for the info and bumping priority of this =)