Map get pixel

From Bennu Wiki
Revision as of 11:57, 16 March 2012 by 82.74.128.190 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Definition

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

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

Parameters

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.

Returns

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.


Mod_draw
Globals None
Imported:
DumptypeFadingFpsFrametimeM7Restoretype
Constants None
Imported:
BACKGROUNDCOMPLETEDUMPCOMPLETERESTORECSCREENNORESTOREPARTIALDUMPPARTIALRESTORESCALEHQ2XSCALENOFILTERSCALENONESCALENORMAL2XSCALESCALE2XSCALESCANLINE2XSCREEN
Locals None
Imported:
AngleCnumberCtypeSpecial:Badtitle/NS108:FileFlagsHeightRegionResolutionSizeSizexSizeyXXgraphYZ
Functions Deletedraw()Drawbox()Drawcircle()Drawcurve()Drawfcircle()Drawline()Drawrect()Drawingalpha()Drawingcolor()Drawingmap()Drawingstipple()Drawingz()Getpixel()Mapgetpixel()Mapputpixel()Movedraw()Putpixel()