Welcome to MSDN Blogs Sign in | Join | Help

Visio 2007 Trick: Transparent Gradients

In which a Visio shape will be harmed ...

 

The Microsoft Visio Conference 2008 concluded this afternoon. The Visio team presented some exciting things for the next version. One thing I observed is that people have yet to exploit the full power of Vision 2007 with regard to create compelling visuals.

I'm going to spend some time trying to change that.

Today's topic: Transparent Gradients

Before I explain how, here's an example of the desired output: a shape with a gradient fill where the transparency changes from the start of the gradient to the end of the gradient.

What we want will look like this:

image

The shape in the middle is opaque on the left and transparent on the right.

I drew this shape using Xara. By the time, I'm finished here, you'll know how to do it in Visio 2007.

 

No Cheating

People sometimes employ a technique where a series of tiny shapes each with an gradually increasing amount of transparency are used to create a transparent gradient. That technique may be appropriate in some cases. It's completely unnecessary here and doesn't yield great visual results. I will not be using this technique. Instead, I'll do it "the right way".

 

The Instructions

  • Launch Visio 2007
  • Create a new drawing via File / New / New Drawing
  • Insert a picture using Insert / Picture / From File ... . The only reason a picture is being inserted is to make it obvious that the gradient changes transparency from the beginning to the end.
  • Resize the picture to fit within the Page

image

  • Draw a rectangle over the picture.

image

 

  • Create a new drawing via File / New / New Drawing
  • On the rectangle, right-click and select Format / Fill ...
  • The Fill Dialog will launch

image

  • Set the Pattern to 25
  • Set Color to blue
  • Set Pattern Color to red

 

image

  • Click OK
  • The Fill dialog closes
  • The fill of the rectangle will now have changed

image

  • Select Tools / Options

image

  • The Options dialog will launch

image

  • Navigate to the Advanced tab
  • Check Run in developer mode
  • Click OK
  • The Options dialog will close
  • Right click on the rectangle and select Show ShapeSheet
  • The ShapeSheet will open
  • Navigate to the Fill Format section
  • NOTE: FillBkgndTrans maps to the transparency of the "Pattern Color" in the Fill dialog
  • Set the FillBkgndTrans to 100%.

image

 

  • At this point it should be clear that the gradient has a beginning and end transparency.
  • NOTE: Do not close the ShapeSheet (nothing bad will happen if you do, it will just make the next step more obvious)
  • Let's look at more closely...

image

  • Withthe ShapeSheet still up, right-lick onthe shape and select Format / Fill...
  • The Fill dialog will launch

image

  • Set both Color and Pattern Color to the white
  • Do NOT change the Transparency value. It will lose the gradient transparency if you do so.

image

  • Click OK
  • The Fill dialog closes

image

  • Close the shapesheet

image

  • Remove the edge for the rectangle

image

 

image

  • Look what we have created

image

 

Homework

  • In the Fill dialog, change the fill pattern to achieve these effects

image

 

Tomorrow

Stay tuned. It gets better.

Published Wednesday, February 06, 2008 10:01 PM by saveenr

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# BioSensorAB » Visio 2007 Trick: Transparent Gradients

Thursday, February 07, 2008 1:51 AM by BioSensorAB » Visio 2007 Trick: Transparent Gradients

# re: Visio 2007 Trick: Transparent Gradients

Excellent presentation - gets the point across very nicely.

Thursday, February 07, 2008 2:04 AM by Art Braune

# re: Visio 2007 Trick: Transparent Gradients

Very clever, yet surprisingly simple.

I've used this trick successfully with a single object, but have not been able to apply this technique to other built-in shapes/stencils (ie. multiple objects within the one stencil). Is it possible to produce this result with a multi-shape object/stencil? (see example here http://www.experts-exchange.com/Microsoft/Applications/Microsoft_Visio/Q_23556277.html)

Thanks

Ashley

Sunday, July 13, 2008 11:15 PM by Ashley Cooke

# re: Visio 2007 Trick: Transparent Gradients

Hey, nice work.

However, I have been facing issues with applying transparencies in Visio, as the prints made doe not come out good at all. I depend on Transparancies in placing a number of objects on top of one another but still be able to see them. On the screen it looks great, but once you print it to PDF or paper, it's just extremely slow to regenerate and the output is not good.

If you get to this note, could you kindly send me a quick pointer to mazen.salhi@yahoo.ca.

Thanks anyway.

Thursday, October 16, 2008 2:31 PM by Mazen

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker