GetBitmapPixel()


GetBitmapPixelRGBA()


c() = GetBitmapPixel(bitmap,x,y)

This function returns an array which contains the color values for a given pixel on the specified bitmap. The values returned are in percent (same as the Color command). This command should be used carefully since alpha blending can return unexpected results.

Dim c(0)

c() = GetBitmapPixel(bitmap,x,y)

c(0) = red

c(1) = green

c(2) = blue

c(3) = alpha


c() = GetBitmapPixelRGBA(bitmap,x,y)

This function returns an array which contains the color values for a given pixel on the specified bitmap. The values returned are in the standard RGBA format (0-255). For absolute color precision use this command.





CreateBitmap


LoadBitmap


SaveBitmap


DrawBitmap


CopySurface


CopyBitmap


SetDrawingSurface


GetBitmapWidth()


GetBitmapHeight()






Become a Patron