Table of Contents

Interface IImage

Namespace
FellowOakDicom.Imaging
Assembly
fo-dicom.core.dll

Image interface.

public interface IImage : IDisposable
Inherited Members
Extension Methods

Properties

Height

int Height { get; }

Property Value

int

Pixels

Gets the array of pixels associated with the image.

PinnedIntArray Pixels { get; }

Property Value

PinnedIntArray

Width

int Width { get; }

Property Value

int

Methods

As<T>()

Cast IImage object to specific (real image) type.

T As<T>()

Returns

T

IImage object as specific (real image) type.

Type Parameters

T

Real image type to cast to.

Clone()

Creates a deep copy of the image.

IImage Clone()

Returns

IImage

Deep copy of this image.

DrawGraphics(IEnumerable<IGraphic>)

Draw graphics onto existing image.

void DrawGraphics(IEnumerable<IGraphic> graphics)

Parameters

graphics IEnumerable<IGraphic>

Graphics to draw.

GetPixel(int, int)

Color32 GetPixel(int x, int y)

Parameters

x int
y int

Returns

Color32

Render(int, bool, bool, int)

Renders the image given the specified parameters.

void Render(int components, bool flipX, bool flipY, int rotation)

Parameters

components int

Number of components.

flipX bool

Flip image in X direction?

flipY bool

Flip image in Y direction?

rotation int

Image rotation.