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
OriginalOffsetX
The original image offset in X direction
int OriginalOffsetX { get; }
Property Value
OriginalOffsetY
The original image offset in Y direction
int OriginalOffsetY { get; }
Property Value
OriginalWidth
The original image width
int OriginalWidth { get; }
Property Value
ScaleFactor
The image scale factor
double ScaleFactor { get; }
Property Value
ScaledHeight
The scaled image height
int ScaledHeight { get; }
Property Value
ScaledOffsetX
The scaled image offset in X direction
int ScaledOffsetX { get; }
Property Value
ScaledOffsetY
The scaled image offset in Y direction
int ScaledOffsetY { get; }
Property Value
ScaledWidth
The scaled image width
int ScaledWidth { get; }
Property Value
ZOrder
The Z Order
int ZOrder { get; }
Property Value
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
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
ILUTThe 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
intRotation angle
Scale(double)
Scale the image
void Scale(double scale)
Parameters
scale
doublescale factor
Transform(double, int, bool, bool)
Transform the image
void Transform(double scale, int rotation, bool flipx, bool flipy)