[]
        
(Showing Draft Content)

GrapeCity.Documents.Imaging.PaletteEntry.-ctor

PaletteEntry Constructor

PaletteEntry(int, int, int)

Creates a PaletteEntry with given values for the color channels.

Declaration
public PaletteEntry(int r, int g, int b)
Public Sub New(r As Integer, g As Integer, b As Integer)
Parameters
Type Name Description
int r

The Red channel value (0..65535).

int g

The Green channel value (0..65535).

int b

The Blue channel value (0..65535).

PaletteEntry(int, int, int, int)

Creates a PaletteEntry with given (premultiplied by alpha) values for the color channels.

Declaration
public PaletteEntry(int r, int g, int b, int a)
Public Sub New(r As Integer, g As Integer, b As Integer, a As Integer)
Parameters
Type Name Description
int r

The Red channel value (0..65535), premultiplied by the associated alpha component.

int g

The Green channel value (0..65535), premultiplied by the associated alpha component.

int b

The Blue channel value (0..65535), premultiplied by the associated alpha component.

int a

The Alpha channel value (0..65535).