Indicates if color space of current bitmap is grayscale.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public ReadOnly Property IsGrayScale As Boolean
public bool IsGrayScale { get; }
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)
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);