Class EmfPlusScaleWorldTransform
Namespace: Aspose.Imaging.FileFormats.Emf.EmfPlus.Records
Assembly: Aspose.Imaging.dll (25.7.0)
The EmfPlusScaleWorldTransform record performs a scaling on the current world space transform.
public sealed class EmfPlusScaleWorldTransform : EmfPlusTerminalServerRecordType
{
public EmfPlusMatrix3D Data;
public EmfPlusScaleWorldTransform(EmfPlusMatrix3D data)
{
this.Data = data;
}
public float GetXScaleFactor()
{
return Data[0, 0];
}
public float GetYScaleFactor()
{
return Data[1, 1];
}
public float GetZScaleFactor()
{
return Data[2, 2];
}
}
Inheritance
object ← MetaObject ← EmfPlusRecord ← EmfPlusTerminalServerRecordType ← EmfPlusScaleWorldTransform
Inherited Members
EmfPlusRecord.Type , EmfPlusRecord.Flags , EmfPlusRecord.Size , EmfPlusRecord.DataSize , object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
EmfPlusScaleWorldTransform(EmfPlusRecord)
Initializes a new instance of the Aspose.Imaging.FileFormats.Emf.EmfPlus.Records.EmfPlusScaleWorldTransform class.
public EmfPlusScaleWorldTransform(EmfPlusRecord source)
{
this._scaleX = source.GetDouble();
this._shearX = source.GetDouble();
this._shearY = source.GetDouble();
this._scaleY = source.GetDouble();
this._centerX = source.GetLong();
this._centerY = source.GetLong();
}
Parameters
source
EmfPlusRecord
The source.
Properties
PostMultipliedMatrix
Gets a value indicating whether [post multiplied matrix].If set, the transform matrix should be post-multipled. If clear, it should be premultiplied.
public bool PostMultipliedMatrix
{
get;
}
Property Value
Sx
Gets or sets a 32-bit floating-point value that defines the horizontal scale factor. The scalingis performed by constructing a new transform matrix from the Sx and Sy field values, asshown in the following table.
| Sx | 0 | 0 || 0 | Sx | 0 |
Figure 3: Scale Transform Matrix
public float Sx
{
get;
set;
}
Property Value
Sy
Gets or sets a 32-bit floating-point value that defines the vertical scale factor.
public float Sy
{
get;
set;
}