Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

Bitmap.MemoryUsed Property

Returns a number of bytes occupied with pixels of this Bitmap.

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

Syntax

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

Property Value

A number of bytes occupied with pixels of this Bitmap.

Remarks

You can use this value to allocate a buffer which should hold a copy of pixels of this Bitmap.

Examples

Visual Basic
Console.WriteLine(" Memory Used: " & bitmap.MemoryUsed)
C#
Aurigma.GraphicsMill.BitmapData bitmapData = bitmap.LockBits();

Console.WriteLine(" Memory Used: " + bitmapData.Height * bitmapData.Stride);

bitmap.UnlockBits(bitmapData);

See Also

Reference