[]
Defines a common interface for images that can be drawn on a GcGraphics.
public interface IImage : IDisposable
Gets a value indicating whether the image was not initialized or has already been disposed.
bool Disposed { get; }
If possible, gets an instance of ExifProfile with Exif metadata of the image.
ExifProfile ExifProfile { get; }
Gets the height of the image, in pixels.
int Height { get; }
Gets the horizontal resolution of the image, in dots per inch.
float HorizontalResolution { get; }
Gets the flip and rotate transformations that must be applied to the image.
FlipRotateAction Rotation { get; }
Gets the vertical resolution of the image, in dots per inch.
float VerticalResolution { get; }
Gets the width of the image, in pixels.
int Width { get; }
Loads the image into an existing instance of GcBitmap.
void ToGcBitmap(GcBitmap bmp)
Retrieves the underlying GcBitmap object, or creates a new GcBitmap that contains the image data.
Note that you should dispose the returned GcBitmap if disposeAfterUse
is true.
GcBitmap ToGcBitmap(bool applyExifOrientation, out bool disposeAfterUse)
applyExifOrientation
boolIndicates whether the flip and rotate transformations should be applied to the returned GcBitmap if that is required by the Orientation property in the EXIF profile.
disposeAfterUse
boolOUT: Indicates whether the returned GcBitmap should be disposed by the user.
Retrieves the underlying GcBitmap object, or creates a new GcBitmap that contains the image data.
Note that you should dispose the returned GcBitmap if disposeAfterUse
is true.
GcBitmap ToGcBitmap(out bool disposeAfterUse)
disposeAfterUse
boolOUT: Indicates whether the returned GcBitmap should be disposed by the user.