API Documentation > CorelDRAW > 2025-v26 > TextureFill > IVGTextureFill
TextureFill.Resolution property
Gets or sets Resolution
Syntax:
Property Get Resolution() As Long
Property Let Resolution(ByVal Value As Long)
Remarks:
The Resolution property returns or specifies, in pixels per inch, the resolution of a texture-fill pattern.
Examples:
The following VBA example applies a texture to a rectangle and displays the texture's resolution.
Sub Test()
Dim s As Shape
Dim tf As TextureFill
Set s = ActiveLayer.CreateRectangle(0, 0, 4, 4)
Set tf = s.Fill.ApplyTextureFill("Circuit board", "Samples 6")
MsgBox "Texture resolution: " & tf.Resolution 
End Sub