Previous Document Next Document
PatternFill.Load

Function Load(FileName As String) As Boolean

Member of PatternFill

The Load method imports a bitmap or vector pattern to use as a pattern fill.

Parameters
Description
FileName
Specifies the full path and filename of the graphic that is imported

The following code example applies a two-color pattern fill and then loads a pattern from a file:

Sub Test() 
 Dim s As Shape 
 Dim pf As PatternFill 
 Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4) 
 Set pf = s.Fill.ApplyPatternFill(cdrTwoColorPattern) 
 pf.Load SetupPath & "Custom Data\Bumpmap\Stlplate.cpt" 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.