Class SpatialTransform
Representation of a spatial 2D transform.
Inheritance
System.Object
SpatialTransform
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FellowOakDicom.Imaging
Assembly: fo-dicom.core.dll
Syntax
public class SpatialTransform
Constructors
SpatialTransform()
Initializes an instance of SpatialTransform.
Declaration
public SpatialTransform()
Properties
FlipX
Gets or sets whether to flip in X direction.
Declaration
public bool FlipX { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
FlipY
Gets or sets whether to flip in Y direction.
Declaration
public bool FlipY { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTransformed
Gets whether the transform is set or reset.
Declaration
public bool IsTransformed { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Pan
Gets or sets the pan of the transform.
Declaration
public Point2 Pan { get; set; }
Property Value
Type | Description |
---|---|
Point2 |
Rotation
Gets or sets the rotation of the transform.
Declaration
public int Rotation { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Scale
Gets or sets the scale of the transform.
Declaration
public double Scale { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
Reset()
Reset the transform.
Declaration
public void Reset()
Rotate(Int32)
Add further rotation to the transform.
Declaration
public void Rotate(int angle)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | angle | Angle with which to rotate. |