[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct2D.Effects.Crop

Class Crop

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

Builtin Crop effect.

public class Crop : Effect, IDisposable, IUnknown
Inheritance
object
Crop
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

Crop(IntPtr)

Initializes a new instance of the Crop class.

public Crop(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Rectangle

The region to be cropped specified as a vector in the form (left, top, width, height). The units are in DIPs.

public Vector4 Rectangle { get; set; }

Property Value

Vector4

Remarks

The rectangle will be truncated if it overlaps the edge boundaries of the input image.

Methods

Create(DeviceContext)

Initializes a new instance of Crop effect.

public static Crop Create(DeviceContext context)

Parameters

context DeviceContext

Returns

Crop