Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
8f933da4
Commit
8f933da4
authored
15 years ago
by
ddpruitt
Browse files
Options
Download
Email Patches
Plain Diff
Applied Patch #2896, Shear / Skew mismatch.
parent
533fb684
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Transforms/SvgSkew.cs
+9
-19
Transforms/SvgSkew.cs
with
9 additions
and
19 deletions
+9
-19
Transforms/SvgSkew.cs
+
9
-
19
View file @
8f933da4
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Drawing.Drawing2D
;
using
System.Drawing.Drawing2D
;
namespace
Svg.Transforms
{
...
...
@@ -10,34 +8,26 @@ namespace Svg.Transforms
/// </summary>
public
sealed
class
SvgSkew
:
SvgTransform
{
p
rivate
float
a
ngleX
,
angleY
;
p
ublic
float
A
ngleX
{
get
;
set
;
}
public
float
AngleX
{
get
{
return
this
.
angleX
;
}
set
{
this
.
angleX
=
value
;
}
}
public
float
AngleY
{
get
{
return
this
.
angleY
;
}
set
{
this
.
angleY
=
value
;
}
}
public
float
AngleY
{
get
;
set
;
}
public
override
Matrix
Matrix
{
get
{
Matrix
matrix
=
new
Matrix
();
matrix
.
Shear
(
this
.
AngleX
,
this
.
AngleY
);
var
matrix
=
new
Matrix
();
matrix
.
Shear
(
(
float
)
Math
.
Tan
(
AngleX
/
180
*
Math
.
PI
),
(
float
)
Math
.
Tan
(
AngleY
/
180
*
Math
.
PI
));
return
matrix
;
}
}
public
SvgSkew
(
float
x
,
float
y
)
{
this
.
a
ngleX
=
x
;
this
.
a
ngleY
=
y
;
A
ngleX
=
x
;
A
ngleY
=
y
;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help