Microsoft KB Archive/295411

= How to create a custom fill pattern by using a bitmap image in Visio =

Article ID: 295411

Article Last Modified on 11/28/2006

-

APPLIES TO


 * Microsoft Office Visio Professional 2007
 * Microsoft Office Visio Standard 2007
 * Microsoft Office Visio Professional 2003
 * Microsoft Office Visio Standard 2003
 * Microsoft Visio 2002 Professional Edition
 * Microsoft Visio 2002 Standard Edition

-



This article was previously published under Q295411



SUMMARY
This article explains how to create a custom fill pattern by using a bitmap image in Microsoft Office Visio. The custom fill pattern can then be applied to shapes in a Visio drawing.



Create a custom fill pattern by using a bitmap file
Visio includes 41 fill and shadow patterns: 0 is no pattern; 1 is a solid, one-color pattern; 2 through 24 are bitmap patterns; and 25 through 40 are gradient patterns. Additional custom fill patterns can be created with a bitmap image. To do this, follow these steps:  Start by using one of the following methods, as appropriate:  To make the pattern available only in the current drawing, look for the Drawing Explorer window. If the Drawing Explorer window is not open, click Drawing Explorer Window on the View menu. To save the pattern with an existing stencil so that you can open it in any drawing, open the stencil (on the File menu, point to Stencils, click Open Stencil, locate the stencil that you want to open, and then double-click it). Click the icon on the title bar of the stencil, and then click Edit. Click the title bar icon again, and then click Drawing Explorer Window. To create a new stencil with which to save the pattern (to make it available in any drawing), point to Stencils on the File menu, and then click New Stencil. (A new stencil opens in edit mode, so it's not necessary to click Edit when you create a new stencil.) Click the title bar icon, and then click Drawing Explorer Window.  In the Drawing Explorer window, right-click the Fill Patterns folder, and then click New Pattern. In the New Pattern dialog box, type a name for the pattern (in the Name box under Details), and then click the fill pattern for Type.

Note You can also create patterns for lines and line ends under Type. Doing so changes the options under Behavior (see step 4).</li> Under Behavior, select the type of fill behavior that you want for the bitmap:  Create multiple copies of the image to fill a shape (tile the image).</li> Use a single centered image.</li> Stretch a single image to fill the shape.</li></ul>

To adjust the pattern as the drawing page scale changes, click to select the Scaled check box. When you are finished in the New Pattern dialog box, click OK.

This creates a new fill pattern in the Drawing Explorer window in the Fill Patterns folder.</li> In the Drawing Explorer window, right-click the new pattern, and then click Edit Pattern.

This opens the blank Edit Pattern window.</li> On the Insert menu, point to Picture, and then click From File.</li> In the Insert Picture dialog box, navigate to the bitmap (.bmp) file for your custom fill, and then click Open.

This inserts your .bmp file into the Edit Pattern window.</li> Click the Close Window button (X) to close the Edit Pattern window. Do not quit Visio itself.</li> When prompted to update your pattern and all the shapes that use it, click Yes.</li></ol>

A new custom fill pattern that uses your bitmap file is now ready to be applied to shapes.

Apply the custom fill pattern
To apply the custom fill pattern, follow these steps:
 * 1) Select the shape to which you want to apply the custom pattern.
 * 2) On the Format menu, click Fill. Under Fill, click the custom pattern from the bottom of the Pattern list, and then click OK.

Note Alternatively, right-click the shape, point to Format, and then click Fill.

Additional query words: VSO2007 VSO 2003 graphic image VSO2003 VSO2002

Keywords: kbhowto kbinfo KB295411

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.