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
8f933da4
Commit
8f933da4
authored
Aug 03, 2009
by
ddpruitt
Browse files
Applied Patch #2896, Shear / Skew mismatch.
parent
533fb684
Changes
1
Show whitespace changes
Inline
Side-by-side
Transforms/SvgSkew.cs
View file @
8f933da4
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Drawing.Drawing2D
;
using
System.Text
;
using
System.Drawing.Drawing2D
;
namespace
Svg.Transforms
namespace
Svg.Transforms
{
{
...
@@ -10,34 +8,26 @@ namespace Svg.Transforms
...
@@ -10,34 +8,26 @@ namespace Svg.Transforms
/// </summary>
/// </summary>
public
sealed
class
SvgSkew
:
SvgTransform
public
sealed
class
SvgSkew
:
SvgTransform
{
{
p
rivate
float
a
ngleX
,
angleY
;
p
ublic
float
A
ngleX
{
get
;
set
;
}
public
float
AngleX
public
float
AngleY
{
get
;
set
;
}
{
get
{
return
this
.
angleX
;
}
set
{
this
.
angleX
=
value
;
}
}
public
float
AngleY
{
get
{
return
this
.
angleY
;
}
set
{
this
.
angleY
=
value
;
}
}
public
override
Matrix
Matrix
public
override
Matrix
Matrix
{
{
get
get
{
{
Matrix
matrix
=
new
Matrix
();
var
matrix
=
new
Matrix
();
matrix
.
Shear
(
this
.
AngleX
,
this
.
AngleY
);
matrix
.
Shear
(
(
float
)
Math
.
Tan
(
AngleX
/
180
*
Math
.
PI
),
(
float
)
Math
.
Tan
(
AngleY
/
180
*
Math
.
PI
));
return
matrix
;
return
matrix
;
}
}
}
}
public
SvgSkew
(
float
x
,
float
y
)
public
SvgSkew
(
float
x
,
float
y
)
{
{
this
.
a
ngleX
=
x
;
A
ngleX
=
x
;
this
.
a
ngleY
=
y
;
A
ngleY
=
y
;
}
}
}
}
}
}
\ No newline at end of file
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