-
Notifications
You must be signed in to change notification settings - Fork 2
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)
| Parameter | Default Value | Note |
|---|---|---|
| image | ||
| newWidth | ||
| newHeight |
None.
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