set
         If (isXp) Then
            .lfQuality = CLEARTYPE_QUALITY
         Else
            .lfQuality = ANTIALIASED_QUALITY
         End If
   End With

End Sub
''' &lt;summary&gt;
''' Tiles a bitmap into the selected area.
''' &lt;/summary&gt;
''' &lt;param name="hDC"&gt;Handle to device context to draw onto.&lt;/param&gt;
''' &lt;param name="x"&gt;x start position.&lt;/param&gt;
''' &lt;param name="y"&gt;y start position.&lt;/param&gt;
''' &lt;param name="Width"&gt;Width of area to tile.&lt;/param&g