GdPicture.NET Reference Guide
PaletteGet Method





GdPicture14 Namespace > GdPictureImaging Class : PaletteGet Method
GdPicture image identifier.
Output parameter. Array of Color Objects. Color array which will contain the complete color palette.
Output parameter. Contains the number of colors contained in the ColorEntries() array.
Gets into a 1D array the complete color palette of a GdPicture image.
Syntax
'Declaration
 
Public Function PaletteGet( _
   ByVal ImageID As Integer, _
   ByRef ColorEntries As Color(), _
   ByRef EntriesCount As Integer _
) As GdPictureStatus
public GdPictureStatus PaletteGet( 
   int ImageID,
   ref Color[] ColorEntries,
   ref int EntriesCount
)
public function PaletteGet( 
    ImageID: Integer;
   var  ColorEntries: array of Color;
   var  EntriesCount: Integer
): GdPictureStatus; 
public function PaletteGet( 
   ImageID : int,
   ColorEntries : Color[],
   EntriesCount : int
) : GdPictureStatus;
public: GdPictureStatus PaletteGet( 
   int ImageID,
   ref Color[] ColorEntries,
   ref int EntriesCount
) 
public:
GdPictureStatus PaletteGet( 
   int ImageID,
   array<Color>% ColorEntries,
   int% EntriesCount
) 

Parameters

ImageID
GdPicture image identifier.
ColorEntries
Output parameter. Array of Color Objects. Color array which will contain the complete color palette.
EntriesCount
Output parameter. Contains the number of colors contained in the ColorEntries() array.

Return Value

A member of the GdPictureStatus enumeration.
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members