Hi,
Can someone tell me the difference between Uniform, UniformToFill & Fill?
Thank you!
Stretching an Image
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Blocked AccountRank #403 · 6.2K reputationPosted Jul 26, 2011, 2:57 AM EDT
You will get the idea about different stretch settings by following image.
Zoran HorvatRank #792 · 2.9K reputationPosted Jul 26, 2011, 2:57 AM EDT
Uniform will resize the image while preserving width:height ratio, so that at least one image's dimension is equal to container's dimension. For instance, if container is of size 300:100 and image has dimensions 70:50, then image will be resized to 140:100.
UniformToFill is combination of Fill and Uniform - it will resize the image until complete container is filled, while preserving image's aspect ratio. In that case, part of the image might be clipped. For example if container has dimensions 300:100 and image has dimensions 100:50, then image will be resized to 300:150, in which case part of the image will be invisible.
Zoran