Table of Contents

Interface IGraphic

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

Graphic interface

public interface IGraphic
Extension Methods

Properties

OriginalHeight

The original image height

int OriginalHeight { get; }

Property Value

int

OriginalOffsetX

The original image offset in X direction

int OriginalOffsetX { get; }

Property Value

int

OriginalOffsetY

The original image offset in Y direction

int OriginalOffsetY { get; }

Property Value

int

OriginalWidth

The original image width

int OriginalWidth { get; }

Property Value

int

ScaleFactor

The image scale factor

double ScaleFactor { get; }

Property Value

double

ScaledHeight

The scaled image height

int ScaledHeight { get; }

Property Value

int

ScaledOffsetX

The scaled image offset in X direction

int ScaledOffsetX { get; }

Property Value

int

ScaledOffsetY

The scaled image offset in Y direction

int ScaledOffsetY { get; }

Property Value

int

ScaledWidth

The scaled image width

int ScaledWidth { get; }

Property Value

int

ZOrder

The Z Order

int ZOrder { get; }

Property Value

int

Methods

BestFit(int, int)

Auto calculate the scale factor to fit the image in the specified width and height

void BestFit(int width, int height)

Parameters

width int

Destination width

height int

Destination height

FlipX()

Flip the image vertically arround its X-Axis

void FlipX()

FlipY()

Flip the image horizontally arround its Y-Axis

void FlipY()

RenderImage(ILUT)

Render the image and return the result as IImage

IImage RenderImage(ILUT lut)

Parameters

lut ILUT

The image LUT

Returns

IImage

Image after applying LUT and transformation

Reset()

Reset the tranformation to default

void Reset()

Rotate(int)

Rotate the image arround its center

void Rotate(int angle)

Parameters

angle int

Rotation angle

Scale(double)

Scale the image

void Scale(double scale)

Parameters

scale double

scale factor

Transform(double, int, bool, bool)

Transform the image

void Transform(double scale, int rotation, bool flipx, bool flipy)

Parameters

scale double

Scale factor

rotation int

Rotation angle

flipx bool

True to flip vertically

flipy bool

True to flip horizontally