RoundToGetPixel - nonkit/SmallWikiPad GitHub Wiki

RoundToGetPixel

Use following workaround to avoid GetPixel issue on browser with Silverlight environment.

x = GraphicsWindow.MouseX
y = GraphicsWIndow.MouseY
If silverlight Then
  x = Math.Round(x)
  y = Math.Round(y)
EndIf
color = GraphicsWindow.GetPixel(x, y)
SB_ColorWorkaround()

See Also

Other Resources