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

Bitmap.BitsPerPixel Property

Returns number of bits per pixel.

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

Syntax

Visual Basic
Public ReadOnly Property BitsPerPixel As Integer
C#
public int BitsPerPixel { get; }

Property Value

Number of bits per pixel of current pixel format.

Examples

Visual Basic
Console.WriteLine("Bitmap: " & bitmap.BitsPerPixel)

Dim bitmapData As Aurigma.GraphicsMill.BitmapData = bitmap.LockBits()

Console.WriteLine("BitmapData: " & bitmapData.BitsPerPixel)

bitmap.UnlockBits(bitmapData)
C#
Console.WriteLine("Bitmap: " + bitmap.BitsPerPixel);

Aurigma.GraphicsMill.BitmapData bitmapData = bitmap.LockBits();

Console.WriteLine("BitmapData: " + bitmapData.BitsPerPixel);

bitmap.UnlockBits(bitmapData);

See Also

Reference