Adding a Glow, Shadow, Blur, or Opacity Effect

You can make a GraphWorX shape or control more interesting or vibrant by adding an effect to it. You can give an object or a SmartPin an opaqueness (using the opacity feature), make the object glow, give it a shadow, or make it blurry. There are several types of GraphWorX objects -- listed below -- that you can apply an effect to.

In this topic, the word "object" refers to any of the objects in the following list:

  • Lines, arcs, splines (also called paths), polylines , rectangles , ellipses , polygons , labels , embedded images , and referenced images (these are all Shapes from the Home ribbon);

  • SmartPins and scale controls and pipe controls (from the Controls ribbon);

  • And in a TrendWorX Viewer (from the Controls ribbon) you can add effects to individual pens.

NOTE: Combining effects is no longer possible in Microsoft .NET4. The ICONICS configuration GUI has been updated accordingly to accommodate one effect per object.

This topic describes steps for:

Creating a Shadow or Blur Effect that Can Be Re-used

You can create shadow and blur effects that can be reused among objects.

  1. In the object Explorer, select an object you are applying the effect to; this selects it in the GraphWorX display, too.

  2. Go to the object's Properties tab and click the Effect property's ellipsis [...] button. This opens the ClosedEffect dialog box.

    The Effect Dialog Box

  3. Type the name for the effect into the Effect Name field. For example, you might call it "Green Blur for Background Objects".

  4. Put a check mark in the Shared check box so that the effect can be used for other objects.

  5. Select Drop Shadow or Blur by clicking a check mark into the check box of the desired effect.

  6. Define each property of the effect. For a shadow effect, specify the depth, color, direction, opacity, softness, and noise; these are described in the Shadow section below. For a blur effect, specify the size and type; these are described in the Blur section below.

  7. Click OK to save the effect and apply it to the object. You can now apply this effect to any other object in the GraphWorX64 display.

Note: There is a handy Effects button on the GraphWorX 2D Home ribbon's Style and Colors section. This button provides predefined effects at your fingertips, but its does not give you the same control to define the effect you want.

Applying a Glow Effect

You can create a halo effect around an object by using the ClosedGlow effect. To apply a glow effect:

  1. Select the object you are applying the glow effect to.
  2. From the ribbon's Home tab, drop down the Effects icon (in the Style and Colors section) and hold your cursor over the Glow selection. It looks like this:

  1. Select the glow effect you want to apply. The drop-down closes and the effect appears on the object in the display.

Applying a Shadow Effect

You can add a shadow behind an object by using the ClosedShadow effect. To apply a shadow effect you can select a gray-colored shadow from the ribbon's Home tab, select a customized drop shadow from the object's properties, or create you own custom shadow effect using the object's properties. These options are described below.

To apply a gray-colored shadow effect from the Home tab:

  1. Select the object you are applying the shadow effect to.
  2. From the ribbon's Home tab, drop down the Effects icon (in the Style and Colors section) and hold your cursor over the Shadow selection. It looks like this:

  1. Select the shadow effect you want to apply. The drop-down closes and the effect appears on the object in the display.

To apply a custom shadow effect:

  1. Select the object you are applying the shadow effect to.
  2. Go to the object's Properties tab and click the Effect property's ellipsis [...] button. This opens the ClosedEffect dialog box.

    The Effect Dialog Box

  3. You have two options:
    • Select the effect from the Effect Name drop-down list, then click OK to apply the effect, or
    • Select the Drop Shadow check box and then configure custom options from the following properties and click OK to apply the effect. Properties are:

      • Depth - Defines the distance between the plane of the icons and the plane where the shadow lands. Select a number from 1 to 20. Lower numbers bring the shadow plane closer to the icons, larger numbers move the shadow plane farther away. The default is 5.
      • Color - The color of the shadow. Select a color by clicking the ellipsis button, or type the color's dimensions. The default is black.
      • Direction - The angle at which the shadow falls. Type a number (from 0 to 360) or click the down arrow to use a dial that points in the direction the shadow is to fall.
      • Opacity - The percentage of opacity for the shadow. You can select 0, 25, 50, 75, or 100, or type a number from 0 to 100. 0 makes the shadow completely transparent or invisible; 100 creates the most dense coloring of the shadow. The default is 100.
      • Softness - The softness of the shadow. You can select 0, 25, 50, 75, or 100, or type a number from 0 to 100. 0 gives each icon a distinct shadow in its own shape; 100 blends the icons' shadows into a haze. The default is 50.
      • Noise - Determines how grainy the shadow is. You can select 0, 25, 50, 75, or 100, or type a number from 0 to 100. 0 removes all graininess from the shadow; 100 provides the most graininess. The default is 0.

Applying a Blur Effect

You can add a blurring effect to an object by using the ClosedBlur effect. To apply a blur effect you can select a gray-colored blurring effect from the ribbon's Home tab, select a customized blurring effect from the object's properties, or create you own custom blurring effect using the object's properties. These options are described below.

To apply a gray-colored blurring effect from the Home tab:

  1. Select the object you are applying the blurring effect to.
  2. From the ribbon's Home tab, drop down the Effects icon (in the Style and Colors section) and hold your cursor over the Blur selection. It looks like this:

  1. Select the blur effect you want to apply. The drop-down closes and the effect appears on the object in the display.

To apply a custom blur effect:

  1. Select the object you are applying the blur effect to.
  2. Go to the object's Properties tab and click the Effect property's ellipsis [...] button. This opens the ClosedEffect dialog box.

    The Effect Dialog Box

  3. You have two options:
    • Select the effect from the Effect Name drop-down list, then click OK to apply the effect, or
    • Select the Blur check box and then configure custom options from the following properties and click OK to apply the effect. Properties are:

      • Size - Determines how blurry the icons are. Select a number from 1 to 20. Lower numbers make the icons more distinct and are probably more appropriate for a SmartPin, while larger numbers increase the blurriness.
      • Type - The type of blurring. Options are Gaussian, which is the default and retains the icon shape better, and Box, which results in a more abstract blurring.

Applying an Opaque Effect

You can add an opaque quality to an object by using the Opacity effect. To apply an opacity effect:

  1. Select the object you are applying the opacity effect to.
  2. From the ribbon's Home tab, drop down the Effects icon (in the Style and Colors section) and hold your cursor over the Opacity selection. It looks like this:

  1. Select the opacity variation you want to apply. The drop-down closes and the effect appears on the object in the display.

See also:

SmartPins

Objects