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
Dither image data to 16bpp or lower (Floyd-Steinberg dithering) NOTE: In case selected bpp do not represent a known 16bit format, dithered data is stored in the LSB part of the unsigned short
Parameters
Parameter
Default Value
Note
image
rBpp
gBpp
bBpp
aBpp
Return value
None.
Notes
Example
img=raylib.LoadImage("photo.png")
// Dither to 4-bit per channel (Floyd-Steinberg)raylib.ImageDitherimg, 4, 4, 4, 4raylib.ExportImageimg, "photo_dithered.png"raylib.UnloadImageimg