-
Notifications
You must be signed in to change notification settings - Fork 0
SkipAlpha
Nonki Takahashi edited this page Apr 24, 2017
·
2 revisions
Use following workaround to skip alpha blending in color on browser with Silverlight environment. GraphicsWindow.GetColorFromRGB(), GraphicsWindow.GetRandomColor() GraphicsWindow.GetPixel(), GraphicsWindow.BackgroundColor, GraphicsWindow.BrushColor and GrahicsWindow.PenColor have this issue.
color = GraphicsWindow.BrushColor
SB_ColorWorkaround()
' then use color as "#rrggbb" format
Sub SB_ColorWorkaround
' Small Basic | Color workaround for Silverlight
' param color
' return color
If Text.GetLength(color) = 9 Then
color = "#" + Text.GetSubTextToEnd(color, 4)
EndIf
EndSub
- Small Basic Known Issue: 23257 - GraphicsWindow Color Operations And Properties Return Alpha Blending Colors in Remote (TechNet Wiki)
Copyright © 2017-2019 Nonki Takahashi.
This work is licensed under a Creative Commons Attribution 4.0 International License.