ColorPalette

ColorPalette

System.Drawing.Imaging (system.drawing.dll) sealed class

This class encapsulates an array of related colors that make up a color palette.

You can retrieve an array of the Entries in the palette (each is a System.Drawing.Color value).

You can also get a Flags integer that rather unpleasantly depends on the magic cookies 0x01 to indicate that the colors contain alpha information, 0x02 to indicate that the colors represent grayscales, and 0x04 to indicate that the array contains halftone values. Those values are listed in the PaletteFlags enumeration, but you have to cast them to an integer before they can be used.

 public sealed class  ColorPalette  {  // Public Instance Properties  public Color[ ]  Entries  {get; }    public int  Flags  {get; } } 

Returned By

System.Drawing.Image.Palette

Passed To

System.Drawing.Image.Palette , ImageAttributes.GetAdjustedPalette()



. Net Windows Forms in a Nutshell
.NET Windows Forms in a Nutshell
ISBN: 0596003382
EAN: 2147483647
Year: 2002
Pages: 794

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net