Get image alpha border rectangle NOTE: Threshold is defined as a percentage: 0.0f -> 1.0f
img = raylib.LoadImage("sprite.png") // Get the bounding rectangle of non-transparent pixels (threshold 10%) rec = raylib.GetImageAlphaBorder(img, 0.1) print "content rect: " + rec.x + "," + rec.y + " " + rec.width + "x" + rec.height raylib.UnloadImage img
There was an error while loading. Please reload this page.