Skip to content

raylib.ImageResizeNN

JoeStrout edited this page Apr 29, 2026 · 2 revisions

Resize and image to new size using Nearest-Neighbor scaling algorithm

Parameters

Parameter Default Value Note
image
newWidth
newHeight

Return value

None.

Notes

Example

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

Clone this wiki locally