Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ImportedProjects
SVG
Commits
7fb9941a
Commit
7fb9941a
authored
Nov 13, 2013
by
Tebjan Halm
Browse files
none paint server renders as Transparent now. regarding issue #31
parent
391de872
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/Painting/SvgColourServer.cs
View file @
7fb9941a
...
...
@@ -32,6 +32,9 @@ namespace Svg
public
override
Brush
GetBrush
(
SvgVisualElement
styleOwner
,
float
opacity
)
{
//is none?
if
(
this
==
SvgPaintServer
.
None
)
return
new
SolidBrush
(
Color
.
Transparent
);
int
alpha
=
(
int
)((
opacity
*
(
this
.
Colour
.
A
/
255.0f
)
)
*
255
);
Color
colour
=
Color
.
FromArgb
(
alpha
,
this
.
Colour
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment