Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is the difference between ImageRectOffset and ImageRectSize?

I want to make a custom font. I've searched the best way to do this, but I can't figure out the difference between them. Which one should I use?

1 answer

✓ Accepted answer

Hi, Qub_lex.

I was confused about your question, so I looked it up. It looks like ImageRectOffset is "A coordinate within our decal or sprite sheet that tells the image label which cell to display. We use this property to tell the image label the coordinate of the top left pixel or the top left position of the cell we want to display pixels start counting from 0.". I found that on Google.

It seems that ImageRectSize is "Allows the partial display of an image in conjunction with ImageLabel.ImageRectOffset. This property determines the pixel size of the image area to be displayed. If either dimension is set to 0, the entire image is displayed instead.". This is according to developer.roblox.com.

I hope this helps! If it does, make sure to accept my answer!

2 comments

0

So which one should I use? They sound the same.

0

OH. I use offset for the position and size for the.. size.

This discussion is preserved as it was. New answers, comments, and votes are closed.