Gets/sets a rectangle used for crop-before-resize feature.
Namespace:
Aurigma.GraphicsMill.Transforms
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Property CropRectangle As RectangleF
public RectangleF CropRectangle { get; set; }
This property is used when CropEnabled is set to true. When it is enabled, the transform takes pixels from this rectangle when resizing. Unlike situation when you first crop the image with Crop transform and then apply Resize, this mode takes into account pixels neighbour to the rectangle boundary (but out of the rectangle) and this way it avoids edge effects.
Draw attention, this transform does not support "outer crop". It means you cannot specify cropping rectangle which is out of the bitmap. This way you should make sure that the rectangle specified with this property is completely included into bitmap.