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