Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Sealed class: RT.Util.Drawing.BytesBitmap

Summary

Wrapper around a Bitmap that allows access to its raw byte data.

Constructors

BytesBitmap(int width, int height, PixelFormat format)
Creates a new, blank BytesBitmap with the specified width, height, and pixel format.

Instance methods

void
  • Implements: IDisposable.Dispose()
Disposes the underlying resources.
Bitmap Use this to create a new Bitmap that is a copy of the image stored in this BytesBitmap. This can be passed around safely, unlike the wrapped bitmap returned by BytesBitmap.Bitmap.

Instance properties

Bitmap Gets the underlying Bitmap that this BytesBitmap wraps. USAGE WARNING: DO NOT use this if the BytesBitmap wrapping it may have gone out of context and disposed of. This will cause intermittent issues - when the BytesBitmap gets GC'd. Use BytesBitmap.GetBitmapCopy() instead.
IntPtr Gets a safe pointer to the buffer containing the bitmap bits.
byte[] Gets an array that contains the bitmap bit buffer.
boolSpecifies whether the underlying resources for this BytesBitmap have already been disposed.
int Gets the number of bits needed to store a pixel.
int Gets the stride (the number of bytes to go one pixel down) of the bitmap.