Method SetPalette
SetPalette(SelectBuf, Int32, Int32, Int32, Int32)
It is used to switch palette for G15 DuraSignMobile pad
Declaration
Error SetPalette(SelectBuf buffer, int startLineNo, int endLineNo, int xStartPosPalette0, int xStartPosPalette1)
Parameters
Type | Name | Description |
---|---|---|
SelectBuf | buffer | Selects the buffer in which to switch palette. |
System.Int32 | startLineNo | The Line no (y axis) in pixel where palette switch is started. |
System.Int32 | endLineNo | The Line no (y axis) in pixel where palette switch is ended. |
System.Int32 | xStartPosPalette0 | The pixel pos in x axis where palette0 switch is started. |
System.Int32 | xStartPosPalette1 | The pixel pos in x axis where palette1 switch is started. |
Returns
Type | Description |
---|---|
Error | Error |
Remarks
Note 1 : This Api is applicable only for g15 or DuraSignMobile pad Note 2 : SelectBuf.Both is also applicable only to g15 or DuraSignPad
Examples
C#
driver.SetPalette(SetPalette.Both, 164, 271, 425, 479);
VB.NET
driver.SetPalette(SetPalette.Both, 164, 271, 425, 479);