Skip to content

AvoidSmall

Nonki Takahashi edited this page Apr 24, 2017 · 2 revisions

AvoidSmall

Use following workaround to avoid drawing rectangle/ellipse smaller issue on browser with Silverlight environment.

GraphicsWindow.PenWidth = pw
If silverlight Then ' on browser environment
  GraphicsWindow.DrawRectangle(x - pw / 2, y - pw / 2, width + pw, height + pw)
Else ' on desktop environment
  GraphicsWindow.DrawRectangle(x, y, width, height)
EndIf

See Also

Other Resources

Clone this wiki locally