D2D1_CROP_PROP enumeration

Identifiers for properties of the Crop effect.

Syntax


typedef enum D2D1_CROP_PROP { 
  D2D1_CROP_PROP_RECT         = 0,
  D2D1_CROP_PROP_BORDER_MODE  = 1
} D2D1_CROP_PROP;

Constants

D2D1_CROP_PROP_RECT

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

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

Type is D2D1_VECTOR_4F

Default value is {-FLT_MAX, -FLT_MAX, FLT_MAX, FLT_MAX}

D2D1_CROP_PROP_BORDER_MODE

Indicates how the effect handles the crop rectangle falling on fractional pixel coordinates.

Type is D2D1_BORDER_MODE.

Default value is D2D1_BORDER_MODE_SOFT.

Requirements

Header

D2d1effects.h

 

 

Show: