Object Model Reference : Classes : T : Transparency : Properties : Transparency.Texture |
Property Texture As TextureFill
Member of Transparency
The Texture property returns a texture fill (or TextureFill object) representing the settings for a texture-fill transparency.
The following VBA example creates a rectangle and applies a texture-fill transparency to it.
Sub Test() |
Dim s As Shape |
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2) |
s.Fill.UniformColor.RGBAssign 0, 0, 255 |
s.Transparency.ApplyTextureTransparency "Water Color2 2C", "" |
s.Transparency.Texture.Properties("Background:").Value = CreateRGBColor(0, 0, 0) |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.