Click or drag to resize

PaletteSave Method

Saves this palette to the specified binary writer in (A)RGB components

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public void Save(
	BinaryWriter writer,
	int shift = 0,
	bool includeAlpha = false
)

Parameters

writer
Type: System.IOBinaryWriter
Writer to write the data to
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 alpha, false to only include RGB components
Remarks
Each component is saved as a single byte (regardless of the value of shift). It is saved in the order of Alpha (if includeAlpha is true), Red, Green, then Blue.
See Also