ImgGetForegroundColor

Top  Previous  Next

Prototype

 

IntColor:=ImgGetForegroundColor(intImageHandle)

 

Description

 

Returns the code corresponding to the foreground color for the image. The color is the darkest more used color.

 

Parameters

 

intImageHandle: integer value corresponding to the image handle.

 

Returned value

 

IntColor: integer value showing the foreground color of the image.

 

Notes

 

None.

 

Example

 

// Get the foreground color from the image

Color:=ImgGetForegroundColor(_CurrentImage);

// Draw a line

ImgDrawLine(_CurrentImage,0,0,100,100,Color);