OfficeImageFrameTransform
OfficeIMO.Drawing
Describes rotation and mirror transforms applied to an image frame in destination coordinates.
Inheritance
- ValueType
- OfficeImageFrameTransform
Usage
Explore 15 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 4
Accepted by parameters 11
- Method OfficeDrawing.AddClippedDrawing
- Method OfficeDrawing.AddClippedPositionedText
- Method OfficeDrawing.AddDrawing
- Method OfficeDrawing.AddPositionedText
- Constructor OfficeDrawingGroup.OfficeDrawingGroup
- Method OfficeImageFrameTransform.Equals
- Method OfficeImageFrameTransform.op_Equality
- Method OfficeImageFrameTransform.op_Equality
- Method OfficeImageFrameTransform.op_Inequality
- Method OfficeImageFrameTransform.op_Inequality
- Method OfficeSvgFormatting.FormatImageFrameTransform
Constructors
public OfficeImageFrameTransform(double rotationDegrees, double centerX, double centerY, bool flipHorizontal = false, bool flipVertical = false) #Creates a destination-space image frame transform.
Parameters
- rotationDegrees double
- Clockwise rotation in degrees.
- centerX double
- Rotation and mirror center X coordinate.
- centerY double
- Rotation and mirror center Y coordinate.
- flipHorizontal bool = false
- Whether to mirror horizontally around the center.
- flipVertical bool = false
- Whether to mirror vertically around the center.
Methods
public OfficeTransform CreateDestinationTransform() #Creates an affine matrix that applies this frame transform to destination-space coordinates.
Returns
OfficeTransformpublic bool Equals(OfficeImageFrameTransform other) #Indicates whether the current object is equal to another object of the same type.
Parameters
- other OfficeIMO.Drawing.OfficeImageFrameTransform
- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.public override bool Equals(object? obj) #Indicates whether this instance and a specified object are equal.
Parameters
- obj object?
- The object to compare with the current instance.
Returns
bool true if obj and this instance are the same type and represent the same value; otherwise, false.public override int GetHashCode() #Returns the hash code for this instance.
Returns
int A 32-bit signed integer that is the hash code for this instance.public static bool op_Equality(OfficeImageFrameTransform left, OfficeImageFrameTransform right) #Returns true when two frame transforms are equal.
Parameters
- left OfficeIMO.Drawing.OfficeImageFrameTransform
- right OfficeIMO.Drawing.OfficeImageFrameTransform
Returns
boolpublic static bool op_Inequality(OfficeImageFrameTransform left, OfficeImageFrameTransform right) #Returns true when two frame transforms are not equal.
Parameters
- left OfficeIMO.Drawing.OfficeImageFrameTransform
- right OfficeIMO.Drawing.OfficeImageFrameTransform
Returns
boolpublic ValueTuple<double, double, double, bool, bool> ToTuple() #Converts the frame transform into a tuple useful for assertions and diagnostics.
Returns
ValueTuple<double, double, double, bool, bool>Inherited Methods
Properties
public double RotationDegrees { get; } #Clockwise rotation in degrees.
public double CenterX { get; } #Rotation and mirror center X coordinate.
public double CenterY { get; } #Rotation and mirror center Y coordinate.
public bool FlipHorizontal { get; } #Whether to mirror horizontally around the center.
public bool FlipVertical { get; } #Whether to mirror vertically around the center.
public double ScaleX { get; } #Horizontal frame scale used for mirror transforms.
public double ScaleY { get; } #Vertical frame scale used for mirror transforms.
public bool HasRotation { get; } #Whether the frame applies rotation.
public bool HasFlip { get; } #Whether the frame applies any mirror transform.
public bool HasTransform { get; } #Whether the frame applies rotation or mirroring.