[]
Builtin AffineTransform2D effect.
public class AffineTransform2D : Effect, IDisposable, IUnknown
Initializes a new instance of the AffineTransform2D class.
public AffineTransform2D(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
The mode used to calculate the border of the image, soft or hard. See BorderMode modes for more info.
public BorderMode BorderMode { get; set; }
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; }
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; }
This property affects only the high quality cubic interpolation mode.
The 3x2 matrix to transform the image using the Direct2D matrix transform.
public Matrix3x2 TransformMatrix { get; set; }
Initializes a new instance of AffineTransform2D effect.
public static AffineTransform2D Create(DeviceContext context)
context
DeviceContext