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

Bitmap.Width Property

Returns current bitmap width in pixels.

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

Syntax

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

Property Value

Width of the bitmap in pixels.

Examples

Visual Basic
Console.WriteLine("Bitmap: " & bitmap.Width & " x " & bitmap.Height)

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

Console.WriteLine("BitmapData: " & bitmapData.Width & " x " & bitmapData.Height)

bitmap.UnlockBits(bitmapData)
C#
Console.WriteLine("Bitmap: " + bitmap.Width + " x " + bitmap.Height);

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

Console.WriteLine("BitmapData: " + bitmapData.Width + " x " + bitmapData.Height);

bitmap.UnlockBits(bitmapData);

See Also

Reference