Class AffineTransform2D
Built in AffineTransform2D effect.
public class AffineTransform2D : Effect
- Inheritance
-
AffineTransform2D
- Inherited Members
Constructors
AffineTransform2D(DeviceContext)
Initializes a new instance of AffineTransform2D effect.
public AffineTransform2D(DeviceContext context)
Parameters
context
DeviceContext
Properties
BorderMode
The mode used to calculate the border of the image, soft or hard. See BorderMode modes for more info.
public BorderMode BorderMode { get; set; }
Property Value
InterpolationMode
The interpolation mode used to scale the image. There are 6 scale modes that range in quality and speed. If you don't select a mode, the effect uses the interpolation mode of the device context. See InterpolationMode for more info.
public InterpolationMode InterpolationMode { get; set; }
Property Value
Sharpness
In the high quality cubic interpolation mode, the sharpness level of the scaling filter as a float between 0 and 1. The values are unitless. You can use sharpness to adjust the quality of an image when you scale the image. The sharpness factor affects the shape of the kernel. The higher the sharpness factor, the smaller the kernel.
public float Sharpness { get; set; }
Property Value
Remarks
This property affects only the high quality cubic interpolation mode.
TransformMatrix
The 3x2 matrix to transform the image using the Direct2D matrix transform.
public RawMatrix3x2 TransformMatrix { get; set; }
Property Value
- RawMatrix3x2