GdPicture.NET Reference Guide
PaletteGetEntry Method
Example 





GdPicture14 Namespace > GdPictureImaging Class : PaletteGetEntry Method
GdPicture Image Identifier.
Index of the color palette. Must be a value between 0 and PaletteGetColorsCount() - 1 returned value.
Returns the color of a specific entry of the palette of a GdPicture image.
Syntax
'Declaration
 
Public Function PaletteGetEntry( _
   ByVal ImageID As Integer, _
   ByVal Entry As Integer _
) As Color
public Color PaletteGetEntry( 
   int ImageID,
   int Entry
)
public function PaletteGetEntry( 
    ImageID: Integer;
    Entry: Integer
): Color; 
public function PaletteGetEntry( 
   ImageID : int,
   Entry : int
) : Color;
public: Color PaletteGetEntry( 
   int ImageID,
   int Entry
) 
public:
Color PaletteGetEntry( 
   int ImageID,
   int Entry
) 

Parameters

ImageID
GdPicture Image Identifier.
Entry
Index of the color palette. Must be a value between 0 and PaletteGetColorsCount() - 1 returned value.

Return Value

Color of the selected entry.
Example
Retrieving the image's palette's fifth entry
Dim oGdPictureImaging As New GdPictureImaging
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("input.png")
Dim Entry As Color = oGdPictureImaging.PaletteGetEntry(ImageID, 5)
'you can do your processing here, for example change the entry in the pallete, then reset the pallette on the image
oGdPictureImaging.ReleaseGdPictureImage(ImageID)
See Also

Reference

GdPictureImaging Class
GdPictureImaging Members