Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I disable anti aliasing for low resolution images?

Asked by 6 years ago

I want to make pixilated textures. That means low-resolution images where you can see every individual pixel crystal clear. Let's say I have a 16x16 texture, that's way too small to see on Roblox, so I'll scale it up to 64x64 (but the base image remains 16x16). As far as I can tell, Roblox applies anti aliasing when increasing the resolution without letting me tell it 'no.' I specifically want to create a low resolution ImageLabel in the PlayerGui.

In short, is there a way to disable anti aliasing?

Example without anti aliasing, what I want

Example with anti aliasing, what I'm getting

0
Is this in studio or in the image program itself? GottaHaveAFunTime 218 — 6y
0
The pictures I took were from an image editor (Gimp) purely for example purposes, but I'd like to remove anti aliasing in studio Celt_ican 74 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

There's no way to disable aliasing on images in Studio, but you can take some measures to retain the sharpness of your images "pixels".

  1. Start with a high-resolution image and scale down, instead of the opposite.
  2. Save images as .png instead of .jpg. The latter format inherently uses lossy compression, while the former uses lossless compression.
  3. Make sure that you always retain the image's aspect ratio when changing size. This is made easier by adding a UIAspectRatioConstraint inside the ImageLabel, and setting the AspectRatio property to sprite width / sprite height
Ad

Answer this question