API Documentation > CorelDRAW > 2025-v26 > Transparency > IVGTransparency
Transparency.ApplyTextureTransparency method
Applies a texture fill transparency to the object
Syntax:
Function ApplyTextureTransparency(ByVal TextureName As String, Optional ByVal LibraryName As String, Optional ByVal Front As Long = 0, Optional ByVal Back As Long = 100) As TextureFill
Parameters:
Name Type Description
TextureName
String
LibraryName
String
Front
Long
Back
Long
Remarks:
The ApplyTextureTransparency method applies a texture-fill transparency to a shape.
Examples:
The following VBA example applies a texture-fill transparency to a rectangle.
Sub Test()
Dim s As Shape
Set s = ActiveLayer.CreateRectangle(0, 0, 2, 2)
s.Fill.UniformColor.RGBAssign 0, 128, 0
s.Outline.Type = cdrNoOutline
s.Transparency.ApplyTextureTransparency "Cosmic Energy", "" 
End Sub