Ooops
May 30, 2020, 04:10:09 AM

Author Topic: How to keep your scaled sprites looking sharp  (Read 1044 times)

Offline fightlessbirds

  • Jr. Member
  • **
  • Posts: 4
How to keep your scaled sprites looking sharp
« on: October 29, 2017, 01:33:14 AM »
I was looking in the AGK documentation for how to make my small pixel art appear sharp when it's scaled up to larger resolutions. The answer was not so obvious so I figured I would share it here:

Code: [Select]
SetImageMagFilter(imageID, 0)
SetImageMinFilter(imageID, 0)

You'll need to do this for each loaded image.

Offline Rick Nasher

  • Hero Member
  • *****
  • Posts: 790
Re: How to keep your scaled sprites looking sharp
« Reply #1 on: November 02, 2017, 12:17:30 PM »
Thanks, that's handy info.
_______________________________________
 B3D + physics + shaders + X-platform = AGK!
:D ..ALIENBREED *LIVES* (thanks to Qube).. :D
_______________________________________

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal