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
)
Public Sub Save (
writer As BinaryWriter,
Optional shift As Integer = 0,
Optional includeAlpha As Boolean = false
)
member Save :
writer : BinaryWriter *
?shift : int *
?includeAlpha : bool
(* Defaults:
let _shift = defaultArg shift 0
let _includeAlpha = defaultArg includeAlpha false
*)
-> unit
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