This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap.IsExtended Property

Indicates if current pixel format is extended (i.e. 16 bits per channel).

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public ReadOnly Property IsExtended As Boolean
C#
public bool IsExtended { get; }

Property Value

If true, 16 bits per channel are used, otherwise - 8 bits per channel.

Remarks

Indexed bitmaps are always non-indexed.

Examples

Visual Basic
Console.WriteLine("Bitmap")
Console.WriteLine("  PixelFormat: " & bitmap.PixelFormat.ToString())
Console.WriteLine("  CMYK: " & bitmap.IsCmyk)
Console.WriteLine("  GrayScale: " & bitmap.IsGrayScale)
Console.WriteLine("  RGB: " & bitmap.IsRgb)
Console.WriteLine("  Indexed: " & bitmap.IsIndexed)
Console.WriteLine("  Extended: " & bitmap.IsExtended)

Dim bitmapData As Aurigma.GraphicsMill.BitmapData = bitmap.LockBits(20, 20, 150, 100)

Console.WriteLine("BitmapData")
Console.WriteLine("  PixelFormat: " & bitmapData.PixelFormat.ToString())

bitmap.UnlockBits(bitmapData)
C#
Console.WriteLine("Bitmap");
Console.WriteLine("  PixelFormat: " + bitmap.PixelFormat.ToString());
Console.WriteLine("  CMYK: " + bitmap.IsCmyk);
Console.WriteLine("  GrayScale: " + bitmap.IsGrayScale);
Console.WriteLine("  RGB: " + bitmap.IsRgb);
Console.WriteLine("  Indexed: " + bitmap.IsIndexed);
Console.WriteLine("  Extended: " + bitmap.IsExtended);

Aurigma.GraphicsMill.BitmapData bitmapData = bitmap.LockBits(20, 20, 150, 100);

Console.WriteLine("BitmapData");
Console.WriteLine("  PixelFormat: " + bitmapData.PixelFormat.ToString());

bitmap.UnlockBits(bitmapData);

See Also

Reference