EffectID identifies one of D-Type's special effects. EffectParameter is used in conjunction with EffectID and provides effect specific parameters. Typically this is the value/amount of the effect. The following chart lists all currently supported style effects and explains how to use their parameters:
EffectID | Description | EffectParameter |
---|---|---|
0 (DV_EFFECT_NONE) | No special effect | Has no meaning and should be set to 0. |
1 (DV_EFFECT_HBLUR_FUZZY) | Fuzzy Blur — only horizontal | The amount of blur in pixels. |
2 (DV_EFFECT_VBLUR_FUZZY) | Fuzzy Blur — only vertical | The amount of blur in pixels. |
3 (DV_EFFECT_HVBLUR_FUZZY) | Fuzzy Blur — horizontal and vertical | The amount of blur in pixels. |
4 (DV_EFFECT_HBLUR_GAUSS) | Gaussian Blur — only horizontal | The amount of blur in pixels. |
5 (DV_EFFECT_VBLUR_GAUSS) | Gaussian Blur — only vertical | The amount of blur in pixels. |
6 (DV_EFFECT_HVBLUR_GAUSS) | Gaussian Blur — horizontal and vertical | The amount of blur in pixels. |
7 (DV_EFFECT_EMBOSS_50_NW) | 50% Transparent Emboss — North-West | The amount of emboss in pixels. |
8 (DV_EFFECT_EMBOSS_50_NE) | 50% Transparent Emboss — North-East | The amount of emboss in pixels. |
9 (DV_EFFECT_EMBOSS_50_SW) | 50% Transparent Emboss — South-West | The amount of emboss in pixels. |
10 (DV_EFFECT_EMBOSS_50_SE) | 50% Transparent Emboss — South-East | The amount of emboss in pixels. |
11 (DV_EFFECT_PATTERN_PHOTO) | Pattern Group 1 — Photo Shades | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
12 (DV_EFFECT_PATTERN_SHADES) | Pattern Group 2 — Fine Shades | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
13 (DV_EFFECT_PATTERN_STRIPES) | Pattern Group 3 — Stripes | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
14 (DV_EFFECT_PATTERN_ORNAMENTAL) | Pattern Group 4 — Ornamental | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
15 (DV_EFFECT_EDGE_50_NW) | 50% Transparent Shaded Edge — North-West | The shading factor in pixels. |
16 (DV_EFFECT_EDGE_50_NE) | 50% Transparent Shaded Edge — North-East | The shading factor in pixels. |
17 (DV_EFFECT_EDGE_50_SW) | 50% Transparent Shaded Edge — South-West | The shading factor in pixels. |
18 (DV_EFFECT_EDGE_50_SE) | 50% Transparent Shaded Edge — South-East | The shading factor in pixels. |
19 (DV_EFFECT_BODY_50_NW) | 50% Transparent Shaded Body — North-West | The shading factor in pixels. |
20 (DV_EFFECT_BODY_50_NE) | 50% Transparent Shaded Body — North-East | The shading factor in pixels. |
21 (DV_EFFECT_BODY_50_SW) | 50% Transparent Shaded Body — South-West | The shading factor in pixels. |
22 (DV_EFFECT_BODY_50_SE) | 50% Transparent Shaded Body — South-East | The shading factor in pixels. |
23 (DV_EFFECT_EDGE_100_NW) | Opaque Shaded Edge — North-West | The shading factor in pixels. |
24 (DV_EFFECT_EDGE_100_NE) | Opaque Shaded Edge — North-East | The shading factor in pixels. |
25 (DV_EFFECT_EDGE_100_SW) | Opaque Shaded Edge — South-West | The shading factor in pixels. |
26 (DV_EFFECT_EDGE_100_SE) | Opaque Shaded Edge — South-East | The shading factor in pixels. |
27 (DV_EFFECT_BODY_100_NW) | Opaque Shaded Body — North-West | The shading factor in pixels. |
28 (DV_EFFECT_BODY_100_NE) | Opaque Shaded Body — North-East | The shading factor in pixels. |
29 (DV_EFFECT_BODY_100_SW) | Opaque Shaded Body — South-West | The shading factor in pixels. |
30 (DV_EFFECT_BODY_100_SE) | Opaque Shaded Body — South-East | The shading factor in pixels. |
31 (DV_EFFECT_SHADE_INNER_A) | Inner Shade A | The shading factor in pixels. |
32 (DV_EFFECT_SHADE_INNER_B) | Inner Shade B | The shading factor in pixels. |
33 (DV_EFFECT_SHADE_INNER_C) | Inner Shade C | The shading factor in pixels. |
34 (DV_EFFECT_HBOLD) | Bold — only horizontal | The amount of emboldening in pixels. |
35 (DV_EFFECT_VBOLD) | Bold — only vertical | The amount of emboldening in pixels. |
36 (DV_EFFECT_HVBOLD) | Bold — horizontal and vertical | The amount of emboldening in pixels. |
37 (DV_EFFECT_HBOLD_VBLUR_FUZZY) | Horizontal Bold with vertical Fuzzy Blur | The amount of emboldening and blur in pixels. |
38 (DV_EFFECT_VBOLD_HBLUR_FUZZY) | Vertical Bold with horizontal Fuzzy Blur | The amount of emboldening and blur in pixels. |
39 (DV_EFFECT_PATTERN_INVPHOTO) | Inverted Pattern Group 1 — Photo Shades | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
40 (DV_EFFECT_PATTERN_INVSHADES) | Inverted Pattern Group 2 — Fine Shades | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
41 (DV_EFFECT_PATTERN_INVSTRIPES) | Inverted Pattern Group 3 — Stripes | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
42 (DV_EFFECT_PATTERN_INVORNAMENTAL) | Inverted Pattern Group 4 — Ornamental | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. |
43 (DV_EFFECT_PATTERN_CUSTOM) | Custom Pattern Fill | Custom pattern fill index. |
44 (DV_EFFECT_RESERVED_A) | Reserved for future use | Has no meaning and should be set to 0. |
45 (DV_EFFECT_RESERVED_B) | Reserved for future use | Has no meaning and should be set to 0. |
46 (DV_EFFECT_HBLUR_STACK) | Stack Blur — only horizontal | The amount of blur in pixels. |
47 (DV_EFFECT_VBLUR_STACK) | Stack Blur — only vertical | The amount of blur in pixels. |
48 (DV_EFFECT_HVBLUR_STACK) | Stack Blur — horizontal and vertical | The amount of blur in pixels. |
49 (DV_EFFECT_HBOLD_VBLUR_GAUSS) | Horizontal Bold with vertical Gaussian Blur | The amount of emboldening and blur in pixels. |
50 (DV_EFFECT_VBOLD_HBLUR_GAUSS) | Vertical Bold with horizontal Gaussian Blur | The amount of emboldening and blur in pixels. |
51 (DV_EFFECT_HBOLD_VBLUR_STACK) | Horizontal Bold with vertical Stack Blur | The amount of emboldening and blur in pixels. |
52 (DV_EFFECT_VBOLD_HBLUR_STACK) | Vertical Bold with horizontal Stack Blur | The amount of emboldening and blur in pixels. |
53 (DV_EFFECT_RESERVED_C) | Reserved for future use | Has no meaning and should be set to 0. |
54 (DV_EFFECT_RESERVED_D) | Reserved for future use | Has no meaning and should be set to 0. |
55 (DV_EFFECT_HOUTLINE) | Outline — only horizontal | Outline value in pixels. |
56 (DV_EFFECT_VOUTLINE) | Outline — only vertical | Outline value in pixels. |
57 (DV_EFFECT_HVOUTLINE) | Outline — horizontal and vertical | Outline value in pixels. |
For a sample of each of the above effects, please see the illustration at the bottom of this page.
EffectID identifies one of D-Type's special effects, while EffectParameter values provide effect specific parameters. Some effects have no parameters, while others have 1 or 2 EffectParameter values. The following chart lists all currently supported style effects and explains how to use their parameters:
EffectID | Description | Number of Required EffectParameter Values (n) | First EffectParameter | Second EffectParameter |
---|---|---|---|---|
0 (DV_EFFECT_NONE) | No special effect | 0 | ||
1 (DV_EFFECT_HBLUR_FUZZY) | Fuzzy Blur — only horizontal | 1 | The amount of horizontal blur in pixels. | |
2 (DV_EFFECT_VBLUR_FUZZY) | Fuzzy Blur — only vertical | 1 | The amount of vertical blur in pixels. | |
3 (DV_EFFECT_HVBLUR_FUZZY) | Fuzzy Blur — horizontal and vertical | 2 | The amount of horizontal blur in pixels. | The amount of vertical blur in pixels. |
4 (DV_EFFECT_HBLUR_GAUSS) | Gaussian Blur — only horizontal | 1 | The amount of horizontal blur in pixels. | |
5 (DV_EFFECT_VBLUR_GAUSS) | Gaussian Blur — only vertical | 1 | The amount of vertical blur in pixels. | |
6 (DV_EFFECT_HVBLUR_GAUSS) | Gaussian Blur — horizontal and vertical | 2 | The amount of horizontal blur in pixels. | The amount of vertical blur in pixels. |
7 (DV_EFFECT_EMBOSS_50_NW) | 50% Transparent Emboss — North-West | 2 | The amount of horizontal emboss in pixels. | The amount of vertical emboss in pixels. |
8 (DV_EFFECT_EMBOSS_50_NE) | 50% Transparent Emboss — North-East | 2 | The amount of horizontal emboss in pixels. | The amount of vertical emboss in pixels. |
9 (DV_EFFECT_EMBOSS_50_SW) | 50% Transparent Emboss — South-West | 2 | The amount of horizontal emboss in pixels. | The amount of vertical emboss in pixels. |
10 (DV_EFFECT_EMBOSS_50_SE) | 50% Transparent Emboss — South-East | 2 | The amount of horizontal emboss in pixels. | The amount of vertical emboss in pixels. |
11 (DV_EFFECT_PATTERN_PHOTO) | Pattern Group 1 — Photo Shades | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
12 (DV_EFFECT_PATTERN_SHADES) | Pattern Group 2 — Fine Shades | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
13 (DV_EFFECT_PATTERN_STRIPES) | Pattern Group 3 — Stripes | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
14 (DV_EFFECT_PATTERN_ORNAMENTAL) | Pattern Group 4 — Ornamental | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
15 (DV_EFFECT_EDGE_50_NW) | 50% Transparent Shaded Edge — North-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
16 (DV_EFFECT_EDGE_50_NE) | 50% Transparent Shaded Edge — North-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
17 (DV_EFFECT_EDGE_50_SW) | 50% Transparent Shaded Edge — South-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
18 (DV_EFFECT_EDGE_50_SE) | 50% Transparent Shaded Edge — South-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
19 (DV_EFFECT_BODY_50_NW) | 50% Transparent Shaded Body — North-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
20 (DV_EFFECT_BODY_50_NE) | 50% Transparent Shaded Body — North-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
21 (DV_EFFECT_BODY_50_SW) | 50% Transparent Shaded Body — South-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
22 (DV_EFFECT_BODY_50_SE) | 50% Transparent Shaded Body — South-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
23 (DV_EFFECT_EDGE_100_NW) | Opaque Shaded Edge — North-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
24 (DV_EFFECT_EDGE_100_NE) | Opaque Shaded Edge — North-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
25 (DV_EFFECT_EDGE_100_SW) | Opaque Shaded Edge — South-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
26 (DV_EFFECT_EDGE_100_SE) | Opaque Shaded Edge — South-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
27 (DV_EFFECT_BODY_100_NW) | Opaque Shaded Body — North-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
28 (DV_EFFECT_BODY_100_NE) | Opaque Shaded Body — North-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
29 (DV_EFFECT_BODY_100_SW) | Opaque Shaded Body — South-West | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
30 (DV_EFFECT_BODY_100_SE) | Opaque Shaded Body — South-East | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
31 (DV_EFFECT_SHADE_INNER_A) | Inner Shade A | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
32 (DV_EFFECT_SHADE_INNER_B) | Inner Shade B | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
33 (DV_EFFECT_SHADE_INNER_C) | Inner Shade C | 2 | The horizontal shading factor in pixels. | The vertical shading factor in pixels. |
34 (DV_EFFECT_HBOLD) | Bold — only horizontal | 1 | The amount of horizontal emboldening in pixels. | |
35 (DV_EFFECT_VBOLD) | Bold — only vertical | 1 | The amount of vertical emboldening in pixels. | |
36 (DV_EFFECT_HVBOLD) | Bold — horizontal and vertical | 2 | The amount of horizontal emboldening in pixels. | The amount of vertical emboldening in pixels. |
37 (DV_EFFECT_HBOLD_VBLUR_FUZZY) | Horizontal Bold with vertical Fuzzy Blur | 2 | The amount of horizontal emboldening in pixels. | The amount of vertical blur in pixels. |
38 (DV_EFFECT_VBOLD_HBLUR_FUZZY) | Vertical Bold with horizontal Fuzzy Blur | 2 | The amount of horizontal blur in pixels. | The amount of vertical emboldening in pixels. |
39 (DV_EFFECT_PATTERN_INVPHOTO) | Inverted Pattern Group 1 — Photo Shades | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
40 (DV_EFFECT_PATTERN_INVSHADES) | Inverted Pattern Group 2 — Fine Shades | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
41 (DV_EFFECT_PATTERN_INVSTRIPES) | Inverted Pattern Group 3 — Stripes | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
42 (DV_EFFECT_PATTERN_INVORNAMENTAL) | Inverted Pattern Group 4 — Ornamental | 1 | Pattern fill index. Refer to Appendix — Pattern Fills for a list of available pattern fills. | |
43 (DV_EFFECT_PATTERN_CUSTOM) | Custom Pattern Fill | 1 | Custom pattern fill index. | |
44 (DV_EFFECT_RESERVED_A) | Reserved for future use | 0 | ||
45 (DV_EFFECT_RESERVED_B) | Reserved for future use | 0 | ||
46 (DV_EFFECT_HBLUR_STACK) | Stack Blur — only horizontal | 1 | The amount of horizontal blur in pixels. | |
47 (DV_EFFECT_VBLUR_STACK) | Stack Blur — only vertical | 1 | The amount of vertical blur in pixels. | |
48 (DV_EFFECT_HVBLUR_STACK) | Stack Blur — horizontal and vertical | 2 | The amount of horizontal blur in pixels. | The amount of vertical blur in pixels. |
49 (DV_EFFECT_HBOLD_VBLUR_GAUSS) | Horizontal Bold with vertical Gaussian Blur | 2 | The amount of horizontal emboldening in pixels. | The amount of vertical blur in pixels. |
50 (DV_EFFECT_VBOLD_HBLUR_GAUSS) | Vertical Bold with horizontal Gaussian Blur | 2 | The amount of horizontal blur in pixels. | The amount of vertical emboldening in pixels. |
51 (DV_EFFECT_HBOLD_VBLUR_STACK) | Horizontal Bold with vertical Stack Blur | 2 | The amount of horizontal emboldening in pixels. | The amount of vertical blur in pixels. |
52 (DV_EFFECT_VBOLD_HBLUR_STACK) | Vertical Bold with horizontal Stack Blur | 2 | The amount of horizontal blur in pixels. | The amount of vertical emboldening in pixels. |
53 (DV_EFFECT_RESERVED_C) | Reserved for future use | 0 | ||
54 (DV_EFFECT_RESERVED_D) | Reserved for future use | 0 | ||
55 (DV_EFFECT_HOUTLINE) | Outline — only horizontal | 1 | Horizontal outline value in pixels. | |
56 (DV_EFFECT_VOUTLINE) | Outline — only vertical | 1 | Vertical outline value in pixels. | |
57 (DV_EFFECT_HVOUTLINE) | Outline — horizontal and vertical | 2 | Horizontal outline value in pixels. | Vertical outline value in pixels. |
Note 1: Effects 4, 5 and 6 (Gaussian Blur) are computationally intensive. The larger the amount of blur, the more time it takes to render the effect. Use Gaussian Blur with caution, especially on slower machines.
Note 2: Fuzzy Blur and Stack Blur are extremely fast and suitable for real-time blurring.
Note 3: Gaussian Blur and Stack Blur produce softer, more aesthetically pleasing look compared to Fuzzy Blur.
Note 4: In order to use effects 11, 12, 13, 14, 39, 40, 41 or 42, the engine must be initialized using the dtype.pat file. This file contains pattern fill definitions listed in Appendix — Pattern Fills.
Note 5: Effects 34, 35, 36 (Bold) can be used to simulate bold typefaces.
In the following illustration, each sample represents one EffectID instance. Of course, by changing EffectParameter for each EffectID it is possible to create additional instances of that effect.