C# Class OpenRA.Graphics.Palette

Show file Open project: pchote/OpenRA Class Usage Examples

Public Methods

Method Description
AsBitmap ( this palette ) : Bitmap
AsReadOnly ( this palette ) : IPalette
AsSystemPalette ( this palette ) : System.Drawing.Imaging.ColorPalette
GetColor ( this palette, int index ) : Color

Method Details

AsBitmap() public static method

public static AsBitmap ( this palette ) : Bitmap
palette this
return System.Drawing.Bitmap

AsReadOnly() public static method

public static AsReadOnly ( this palette ) : IPalette
palette this
return IPalette

AsSystemPalette() public static method

public static AsSystemPalette ( this palette ) : System.Drawing.Imaging.ColorPalette
palette this
return System.Drawing.Imaging.ColorPalette

GetColor() public static method

public static GetColor ( this palette, int index ) : Color
palette this
index int
return System.Drawing.Color