Heading to the Printing United trade show? Schedule a meeting with our representatives.
This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapData.BitsPerPixel Property

Returns number of bits per pixel for current BitmapData.

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 for current BitmapData.

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