Welcome to MSDN Blogs Sign in | Join | Help

Advanced Gradients with Visio 2007 and Visual Studio 2008

Summary: You can make surprisingly rich multi-color gradients with Visio 2007 and some code.

Background

The Visio 2007 User Interface Allows multi-color gradient fills (i.e. 2 gradient stops, one at the start and one at the end), but only supports a single transparency for both stops. If we had the ability to specify different transparencies for the stops, we'd be able to create some nice effects.

Here's what we can create:

image

Visio's graphics engine supports this feature, it's just not exposed in the User Interface.

Using this technique we can combine multiple shapes with different colors and transparencies into a single beautiful gradient.

To get the image above, just draw 5 different shapes and then stacks them on top of each other:

image

 

The Code

The code to generate these can be found in the VisioAutoExt project on codeplex.

Another Example

If you get creative with the gradients you can create an image like this.

image

Published Saturday, August 18, 2007 8:09 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

# MSDN Blog Postings » Advanced Gradients with Visio 2007 and Visual Studio 2008

# re: Advanced Gradients with Visio 2007 and Visual Studio 2008

Hi Saveen,

Your website is very interesting! I was playing around with your AutoVisio library yesterday and found the methods for converting Visio colors to System colors intriguing. I remember needing to do this for some reason, but I can't remember the situation. Any chance you'd be willing to share the formula or code behind this?

Thanks,

Chris

Thursday, August 23, 2007 3:07 AM by Visio Guy

# re: Advanced Gradients with Visio 2007 and Visual Studio 2008

Certainly I'd be willing to share the code. Look forward to this weekend. I'll be putting the AutoVisio code on CodePlex.

Thursday, August 23, 2007 11:54 AM by saveenr

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker