Aurigma Graphics Mill 5.5 for .NET
ColorPalette..::.SetColorKey Method (Int32)
Makes palette entry with given index transparent.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Sub SetColorKey ( _ entryIndex As Integer _ )
C#
public void SetColorKey( int entryIndex )
Parameters
- entryIndex
-
Type: System..::.Int32
Index of the palette entry to make transparent.
Remarks
Alpha channel of given entry will be dropped to 0, alpha channels of all other entries will be set to 255. This way palette will contain only the single transparent index. If you need more than one transparent entry, put transparent RgbColor into appropriate Item[([(Int32])]).
Examples
Visual Basic
Dim index As Integer = 203 palette.SetColorKey(index)
C#
int index = 203; palette.SetColorKey(index);