Click or drag to resize

PaletteLoad Method

Loads the palette from the specified binary reader in (A)RGB components

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public void Load(
	BinaryReader reader,
	int size,
	int shift = 0,
	bool includeAlpha = false
)

Parameters

reader
Type: System.IOBinaryReader
Reader to read the data from
size
Type: SystemInt32
Number of palette entried to load
shift (Optional)
Type: SystemInt32
Shift amount for each component. 0 = 0-255, 1 = 0-128, 2 = 0-64, etc
includeAlpha (Optional)
Type: SystemBoolean
True to include the alpha component, false to only read RGB components
Remarks
Each component is read as a single byte (regardless of the value of shift). It is read in the order of Alpha (if includeAlpha is true), Red, Green, then Blue.
See Also