IBitmapImage Interface

Definition

Namespace: P1.ImageSdk

A RGB bitmap image interface, that can be used af input to image stacking (Windows only) and Tiff writing More…

public interface IBitmapImage :  IDisposable

Remarks

A RGB bitmap image interface, that can be used af input to image stacking (Windows only) and Tiff writing

ImageSDK in C# uses two different bitmap classes: BitmapImage, which stores its pixels in a byte array (byte[]). And HugeBitmapImage that stores its pixels in unmanaged (native) memory.

Both classes implements this interface, and this interface is all that is needed as input to ImageSDK methods that handle bitmap images as input.

This interface defines no means of accessing the individual pixels from C#. Use the concreate classes for that.

Since Phase One bitmap images are quite large (between 420 and 850 MB), you should always use the disposing pattern, to allow fast releasing of memory.

Properties

ByteSize

The total size of the image data in bytes

Format

The pixel format used in the image data

Width

Height

BitsPerSample

SamplesPerPixel

Stride

SourceCrop

Methods

GetIntPtr()

Get a IntPtr provider that creates and destroys handles to the underlying data buffer with the image data