Interface IGraphic
Graphic interface
Namespace: Dicom.Imaging.Render
Assembly: cs.temp.dll.dll
Syntax
public interface IGraphic
Properties
OriginalHeight
The original image height
Declaration
int OriginalHeight { get; }
Property Value
Type | Description |
---|---|
Int32 |
OriginalOffsetX
The original image offset in X direction
Declaration
int OriginalOffsetX { get; }
Property Value
Type | Description |
---|---|
Int32 |
OriginalOffsetY
The original image offset in Y direction
Declaration
int OriginalOffsetY { get; }
Property Value
Type | Description |
---|---|
Int32 |
OriginalWidth
The original image width
Declaration
int OriginalWidth { get; }
Property Value
Type | Description |
---|---|
Int32 |
ScaledHeight
The scaled image height
Declaration
int ScaledHeight { get; }
Property Value
Type | Description |
---|---|
Int32 |
ScaledOffsetX
The scaled image offset in X direction
Declaration
int ScaledOffsetX { get; }
Property Value
Type | Description |
---|---|
Int32 |
ScaledOffsetY
The scaled image offset in Y direction
Declaration
int ScaledOffsetY { get; }
Property Value
Type | Description |
---|---|
Int32 |
ScaledWidth
The scaled image width
Declaration
int ScaledWidth { get; }
Property Value
Type | Description |
---|---|
Int32 |
ScaleFactor
The image scale factor
Declaration
double ScaleFactor { get; }
Property Value
Type | Description |
---|---|
Double |
ZOrder
The Z Order
Declaration
int ZOrder { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
BestFit(Int32, Int32)
Auto calculate the scale factor to fit the image in the specified width and height
Declaration
void BestFit(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
Int32 | width | Destination width |
Int32 | height | Destination height |
FlipX()
Flip the image vertically arround its X-Axis
Declaration
void FlipX()
FlipY()
Flip the image horizontally arround its Y-Axis
Declaration
void FlipY()
RenderImage(ILUT)
Render the image and return the result as IImage
Declaration
IImage RenderImage(ILUT lut)
Parameters
Type | Name | Description |
---|---|---|
ILUT | lut | The image LUT |
Returns
Type | Description |
---|---|
IImage | Image after applying LUT and transformation |
Reset()
Reset the tranformation to default
Declaration
void Reset()
Rotate(Int32)
Rotate the image arround its center
Declaration
void Rotate(int angle)
Parameters
Type | Name | Description |
---|---|---|
Int32 | angle | Rotation angle |
Scale(Double)
Scale the image
Declaration
void Scale(double scale)
Parameters
Type | Name | Description |
---|---|---|
Double | scale | scale factor |
Transform(Double, Int32, Boolean, Boolean)
Transform the image
Declaration
void Transform(double scale, int rotation, bool flipx, bool flipy)
Parameters
Type | Name | Description |
---|---|---|
Double | scale | Scale factor |
Int32 | rotation | Rotation angle |
Boolean | flipx | True to flip vertically |
Boolean | flipy | True to flip horizontally |