BlurFilterParams

BlurFilterParams
struct BlurFilterParams {
  enum ModeConstants {
    Mode_FilterMask = 0x07,
    Mode_Knockout = 0x10,
    Mode_Inner = 0x20,
    Mode_HideObject = 0x40,
    Mode_Highlight = 0x80,
    Mode_FlagsMask = 0xF0
  };
  unsigned Mode;
  unsigned Passes;
  float BlurX, BlurY;
  PointF Offset;
  float Strength;
  Color Colors[2];
  Ptr<GradientData> Gradient;
};
Description

BlurFilterParams describes arguments for a Blur filter implementation. These arguments describe a blur filter state and are also passed into HAL. Filter parameter (BlurX/Y, Offset) coordinate system must match that of a shape and/or text-field that is applied to.

Data Members
Data Member 
Description 
The amount of horizontal blur. // in Twips 
The amount of vertical blur. // In Twips 
Color of the drop shadow. // Color[0] = Shadow color, Color [1] = Highlight color 
Gradient, for GradientGlowFilter and GradientBevelFilter (null otherwise) 
Mode 
The supported filter mode. // Combination of ModeConstants and FilterType
Offset of the drop shadow. 
The number of times to perform the blur. 
The intensity of the filter applied. [0...1 
Enumerations
Enumeration 
Description 
Lists the various blur filter mode supported in the renderer. 
Methods
Method 
Description 
Initializes the BlurFilterParams structure. 
Computes blur/shadow offset based on an angle in radians and distance. 
 
Returns the filter type that is applied on the tree node. 
Scales the filter effects on a display object to the screen. 
File

Render_FilterParams.h