Map get pixel

From Bennu Wiki
Jump to navigation Jump to search


INT map_get_pixel ( <INT fileID> , <INT graphID> , <INT x> , <INT y> )

Returns the color on the specified graphic of the specified pixel.


INT fileID - The fileID of the file that holds the graphic.
INT graphID - The graphID of the graphic to get the pixel from.
INT x - The X-coordinate of the pixel the color is wanted.
INT y - The Y-coordinate of the pixel the color is wanted.


INT : The color

-1 - Error: invalid map; invalid; invalid pixel; invalid color depth of map. Note: in 32bit graphs this can be a color too.
!-1 - The color.

Functions Deletedraw()Drawbox()Drawcircle()Drawcurve()Drawfcircle()Drawline()Drawrect()Drawingalpha()Drawingcolor()Drawingmap()Drawingstipple()Drawingz()Getpixel()Mapgetpixel()Mapputpixel()Movedraw()Putpixel()