D2D1_BORDER_MODE enumeration

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

Syntax


typedef enum D2D1_BORDER_MODE { 
  D2D1_BORDER_MODE_SOFT  = 0,
  D2D1_BORDER_MODE_HARD  = 1
} D2D1_BORDER_MODE;

Constants

D2D1_BORDER_MODE_SOFT

If the crop rectangle falls on fractional pixel coordinates, the effect applies antialiasing which results in a soft edge.

D2D1_BORDER_MODE_HARD

If the crop rectangle falls on fractional pixel coordinates, the effect clamps which results in a hard edge.

Requirements

Header

D2d1effects.h

 

 

Show: