D2D1_CROP_PROP enumeration (d2d1effects.h)

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_FORCE_DWORD = 0xffffffff
} ;

Constants

 
D2D1_CROP_PROP_RECT
Value: 0
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
Value: 1
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.
D2D1_CROP_PROP_FORCE_DWORD
Value: 0xffffffff

Requirements

Requirement Value
Header d2d1effects.h