Skip to content

raylib.ImageResize

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Resize and image to new size NOTE: Uses stb default scaling filters (both bicubic): STBIR_DEFAULT_FILTER_UPSAMPLE STBIR_FILTER_CATMULLROM STBIR_DEFAULT_FILTER_DOWNSAMPLE STBIR_FILTER_MITCHELL (high-quality Catmull-Rom)

Parameters

Parameter Default Value Note
image
newWidth
newHeight

Return value

None.

Notes

Example

img = raylib.LoadImage("photo.png")
// Resize to 128x128 using bicubic filtering
raylib.ImageResize img, 128, 128
raylib.ExportImage img, "photo_128.png"
raylib.UnloadImage img

Clone this wiki locally