Legato
Legato

GoFiler Legato Script Reference

 

Legato v 1.4j

Application v 5.22b

  

 

Chapter TenGraphic and Image Functions (continued)

ImageGetColors Function

Overview

The ImageGetColors function retrieves the number of colors available for an Image object as loaded.

Syntax/Parameters

Syntax

dword = ImageGetColors ( handle hImage );

Parameters

hImage

A handle to an Image object.

Return Value

Returns a dword containing the number of colors that the image can contain or zero on failure. Use the GetLastError function to retrieve error information.

Remarks

The ImageGetColors function returns the number of colors available for the Image object. This will vary depending on the type of image loaded into the object.

Related Functions

Platform Support

Go13, Go16, GoFiler Complete, GoFiler Corporate, GoFiler, GoFiler Lite, GoXBRL

Legato IDE, Legato Basic