Aurigma Graphics Mill 5.5 for .NET
Bitmap..::.MemoryUsed Property
Returns a number of bytes occupied with pixels of this Bitmap.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
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);