Object Model Reference : Classes : P : PatternFill : Methods : 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.
The following VBA 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 |
Copyright 2013 Corel Corporation. All rights reserved.