[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Effects.AffineTransform2D

Class AffineTransform2D

Namespace
GrapeCity.Documents.DX.Direct2D.Effects
Assembly
GcDocs.DX.Windows.dll

Builtin AffineTransform2D effect.

public class AffineTransform2D : Effect, IDisposable, IUnknown
Inheritance
object
AffineTransform2D
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

AffineTransform2D(IntPtr)

Initializes a new instance of the AffineTransform2D class.

public AffineTransform2D(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

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

BorderMode

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

InterpolationMode

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

float

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 Matrix3x2 TransformMatrix { get; set; }

Property Value

Matrix3x2

Methods

Create(DeviceContext)

Initializes a new instance of AffineTransform2D effect.

public static AffineTransform2D Create(DeviceContext context)

Parameters

context DeviceContext

Returns

AffineTransform2D