-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.ImageResizeNN
JoeStrout edited this page Apr 29, 2026
·
2 revisions
Resize and image to new size using Nearest-Neighbor scaling algorithm
| Parameter | Default Value | Note |
|---|---|---|
| image | ||
| newWidth | ||
| newHeight |
None.
img = raylib.LoadImage("pixel_art.png")
// Scale up 4x with nearest-neighbor (no blurring)
raylib.ImageResizeNN img, img.width * 4, img.height * 4
raylib.ExportImage img, "pixel_art_4x.png"
raylib.UnloadImage img