Interface IImage
Image interface.
Inherited Members
System.IDisposable.Dispose()
Namespace: FellowOakDicom.Imaging
Assembly: fo-dicom.core.dll
Syntax
public interface IImage : IDisposable
Properties
Height
Declaration
int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Pixels
Gets the array of pixels associated with the image.
Declaration
PinnedIntArray Pixels { get; }
Property Value
Type | Description |
---|---|
PinnedIntArray |
Width
Declaration
int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
As<T>()
Cast IImage object to specific (real image) type.
Declaration
T As<T>()
Returns
Type | Description |
---|---|
T | IImage object as specific (real image) type. |
Type Parameters
Name | Description |
---|---|
T | Real image type to cast to. |
Clone()
Creates a deep copy of the image.
Declaration
IImage Clone()
Returns
Type | Description |
---|---|
IImage | Deep copy of this image. |
DrawGraphics(IEnumerable<IGraphic>)
Draw graphics onto existing image.
Declaration
void DrawGraphics(IEnumerable<IGraphic> graphics)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<IGraphic> | graphics | Graphics to draw. |
GetPixel(Int32, Int32)
Declaration
Color32 GetPixel(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | |
System.Int32 | y |
Returns
Type | Description |
---|---|
Color32 |
Render(Int32, Boolean, Boolean, Int32)
Renders the image given the specified parameters.
Declaration
void Render(int components, bool flipX, bool flipY, int rotation)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | components | Number of components. |
System.Boolean | flipX | Flip image in X direction? |
System.Boolean | flipY | Flip image in Y direction? |
System.Int32 | rotation | Image rotation. |