Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Struct

OfficeImageFrameTransform

OfficeIMO.Drawing

Namespace
OfficeIMO.Drawing
Assembly
OfficeIMO.Core
Source revision
ba882f6b0d07 with working tree changes
Base
ValueType
Implements
IEquatable<OfficeImageFrameTransform>
Modifiers
sealed

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.

Accepted by parameters 11

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 required
Clockwise rotation in degrees.
centerX double required
Rotation and mirror center X coordinate.
centerY double required
Rotation and mirror center Y coordinate.
flipHorizontal bool = false optional
Whether to mirror horizontally around the center.
flipVertical bool = false optional
Whether to mirror vertically around the center.

Methods

public OfficeTransform CreateDestinationTransform() #

Creates an affine matrix that applies this frame transform to destination-space coordinates.

Equals 2 overloads
public bool Equals(OfficeImageFrameTransform other) #

Indicates whether the current object is equal to another object of the same type.

Parameters

other OfficeIMO.Drawing.OfficeImageFrameTransform required
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? required
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 required
right OfficeIMO.Drawing.OfficeImageFrameTransform required

Returns

bool
public static bool op_Inequality(OfficeImageFrameTransform left, OfficeImageFrameTransform right) #

Returns true when two frame transforms are not equal.

Parameters

left OfficeIMO.Drawing.OfficeImageFrameTransform required
right OfficeIMO.Drawing.OfficeImageFrameTransform required

Returns

bool
public 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>

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.