You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.ImageResizeNNimg, img.width*4, img.height*4raylib.ExportImageimg, "pixel_art_4x.png"raylib.UnloadImageimg