Fenix Manual
Fenix Manual
Command Reference
Map Commands

Get_Point
Graphic_Info
Graphic_Set
Load_Map
Load_Pcx
Load_Png
Map_Block_Copy
Map_Clear
Map_Clone
Map_Exists
Map_Get_Pixel
Map_Name
Map_Put
Map_Put_Pixel
Map_Set_Name
New_Map
Save_Map
Save_Png
Set_Center
Set_Point
Unload_Map

Map_Put_Pixel
Last Modified: May 23, 2005 20:05PM
(Any)
Description

MAP_PUT_PIXEL ( INT LIBRARY, INT GRAPH, INT X, INT Y, INT COLOUR )
It changes the value of a pixel of a graph

PARAMETERS:
INT library: Number of FPG library
INT graph: Number of graph inside the library
INT x: Horizontal coordinate
INT y: Vertical coordinate
INT colour: Colour to draw

DESCRIPTION:
This function allows you to change the colour of a pixel determined inside of a graph. The point (0, 0) represents the top left corner of the graph.

In case of graph of 256 colours (8 bits), the value of colour must be a number of 0 to 255. In the opposite case, this value is a combination of the components of the colour that depends on the video card and the graph mode.

It is normal to use the function RGB to obtain the combination of a certain colour, or use a colour obtained by a function like Map_Get_Pixel. The colour 0, in both mode graphs, represents a transparent pixel.


User Contributed Notes
Map_Put_Pixel
Add Notes About Notes
There are no user contributed notes for this page.
Last updated: Fri, 27 May 2005 - 6:21:30

Manual © 2005 By Gary Moncrieff(Dazzy), Notes belong to their respective posters