Load image from GPU texture data NOTE: Compressed texture formats not supported
tex = raylib.LoadTexture("sprite.png") img = raylib.LoadImageFromTexture(tex) if raylib.IsImageValid(img) then print "Read back image: " + img.width + "x" + img.height raylib.UnloadImage img end if raylib.UnloadTexture tex
There was an error while loading. Please reload this page.