API Reference
OfficeTransform
Dependency-free 2D affine transform in a local top-left coordinate space.
Inheritance
- ValueType
- OfficeTransform
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property OfficeDrawingEffectGroup.Transform
- Property OfficeDrawingSoftMask.Transform
- Method OfficeDrawingTilingPattern.GetTileTransforms
- Property OfficeDrawingTilingPattern.Transform
- Method OfficeImageFrameTransform.CreateDestinationTransform
- Method OfficeImageProjection.CreateUnitSquareTransform
- Property OfficeInkStroke.Transform
- Property OfficeScanProcessingReport.ProcessedToSource
- Property OfficeScanProcessingReport.SourceToProcessed
- Property OfficeShape.Transform
- Method OfficeTransform.Invert
- Method OfficeTransform.RotateDegrees
- Method OfficeTransform.RotateDegrees
- Method OfficeTransform.Scale
- Method OfficeTransform.Then
- Method OfficeTransform.Translate
- Property OfficeTransform.Identity
Accepted by parameters
- Method OfficeDrawing.AddBorderBox
- Method OfficeDrawing.AddEffectDrawing
- Method OfficeDrawing.AddEffectDrawing
- Method OfficeDrawing.AddTilingPattern
- Method OfficeDrawing.AddTilingPattern
- Constructor OfficeDrawingEffectGroup.OfficeDrawingEffectGroup
- Constructor OfficeDrawingEffectGroup.OfficeDrawingEffectGroup
- Constructor OfficeDrawingSoftMask.OfficeDrawingSoftMask
- Constructor OfficeDrawingSoftMask.OfficeDrawingSoftMask
- Method OfficeDrawingSoftMask.CreateWithLuminosityStandard
- Constructor OfficeDrawingTilingPattern.OfficeDrawingTilingPattern
- Constructor OfficeDrawingTilingPattern.OfficeDrawingTilingPattern
- Method OfficeInkPoint.Transform
- Method OfficeLinearGradient.FromTransformedAngle
- Method OfficeRasterCanvas.DrawAffineImage
- Method OfficeRasterCanvas.DrawAffineImage
- Method OfficeRasterCanvas.DrawTextLineTransformed
- Method OfficeRasterResampler.Transform
- Method OfficeSvgFormatting.AppendMatrixTransformAttribute
- Method OfficeSvgFormatting.FormatMatrixTransform
- Method OfficeTransform.Equals
- Method OfficeTransform.op_Equality
- Method OfficeTransform.op_Equality
- Method OfficeTransform.op_Inequality
- Method OfficeTransform.op_Inequality
- Method OfficeTransform.Then
- Method OfficeTransform.TryInvert
Constructors
public OfficeTransform(Double m11, Double m12, Double m21, Double m22, Double offsetX, Double offsetY) #Creates an affine transform.
Parameters
- m11 System.Double
- m12 System.Double
- m21 System.Double
- m22 System.Double
- offsetX System.Double
- offsetY System.Double
Methods
public override Int32 GetHashCode() #Int32public OfficeTransform Invert() #OfficeTransformReturns the inverse transform.
Exceptions
InvalidOperationException– Thrown when the transform cannot be inverted.
public static Boolean op_Equality(OfficeTransform left, OfficeTransform right) #BooleanReturns true when two transforms are equal.
Parameters
- left OfficeIMO.Drawing.OfficeTransform
- right OfficeIMO.Drawing.OfficeTransform
public static Boolean op_Inequality(OfficeTransform left, OfficeTransform right) #BooleanReturns true when two transforms are not equal.
Parameters
- left OfficeIMO.Drawing.OfficeTransform
- right OfficeIMO.Drawing.OfficeTransform
public static OfficeTransform RotateDegrees(Double degrees) #OfficeTransformCreates a clockwise rotation transform around the local origin.
Parameters
- degrees System.Double
public static OfficeTransform RotateDegrees(Double degrees, Double centerX, Double centerY) #OfficeTransformCreates a clockwise rotation transform around a local point.
Parameters
- degrees System.Double
- centerX System.Double
- centerY System.Double
public static OfficeTransform Scale(Double scaleX, Double scaleY) #OfficeTransformCreates a scale transform around the local origin.
Parameters
- scaleX System.Double
- scaleY System.Double
public OfficeTransform Then(OfficeTransform next) #OfficeTransformReturns a transform that applies this transform first, then the supplied transform.
Parameters
- next OfficeIMO.Drawing.OfficeTransform
public OfficePoint TransformPoint(OfficePoint point) #OfficePointTransforms a point in local top-left coordinates.
Parameters
- point OfficeIMO.Drawing.OfficePoint
public ValueTuple<Double, Double, Double, Double> TransformRectangleBounds(Double x, Double y, Double width, Double height) #ValueTuple<Double, Double, Double, Double>Calculates axis-aligned bounds for a transformed rectangle.
Parameters
- x System.Double
- Rectangle left coordinate.
- y System.Double
- Rectangle top coordinate.
- width System.Double
- Rectangle width.
- height System.Double
- Rectangle height.
Returns
Axis-aligned bounds of the transformed rectangle.
public static OfficeTransform Translate(Double offsetX, Double offsetY) #OfficeTransformCreates a translation transform.
Parameters
- offsetX System.Double
- offsetY System.Double
public Boolean TryInvert(out OfficeTransform inverse) #BooleanAttempts to create the inverse transform.
Parameters
- inverse OfficeIMO.Drawing.OfficeTransform@
- Inverse transform when inversion succeeds.
Returns
True when the transform has a non-zero determinant.
Inherited Methods
Properties
public static OfficeTransform Identity { get; } #Identity transform.
public Double M11 { get; } #Horizontal scale/rotation component.
public Double M12 { get; } #Vertical shear/rotation component.
public Double M21 { get; } #Horizontal shear/rotation component.
public Double M22 { get; } #Vertical scale/rotation component.
public Double OffsetX { get; } #Horizontal translation component.
public Double OffsetY { get; } #Vertical translation component.