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
7b5f2bb7
Commit
7b5f2bb7
authored
Oct 02, 2014
by
Tebjan Halm
Browse files
Revert "changed the default MatrixOrder to Prepend (instead of Append)"
parent
0d2b50e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/Rendering/ISvgRenderer.cs
View file @
7b5f2bb7
...
@@ -15,12 +15,12 @@ namespace Svg
...
@@ -15,12 +15,12 @@ namespace Svg
ISvgBoundable
GetBoundable
();
ISvgBoundable
GetBoundable
();
Region
GetClip
();
Region
GetClip
();
ISvgBoundable
PopBoundable
();
ISvgBoundable
PopBoundable
();
void
RotateTransform
(
float
fAngle
,
MatrixOrder
order
=
MatrixOrder
.
Pre
pend
);
void
RotateTransform
(
float
fAngle
,
MatrixOrder
order
=
MatrixOrder
.
Ap
pend
);
void
ScaleTransform
(
float
sx
,
float
sy
,
MatrixOrder
order
=
MatrixOrder
.
Pre
pend
);
void
ScaleTransform
(
float
sx
,
float
sy
,
MatrixOrder
order
=
MatrixOrder
.
Ap
pend
);
void
SetBoundable
(
ISvgBoundable
boundable
);
void
SetBoundable
(
ISvgBoundable
boundable
);
void
SetClip
(
Region
region
,
CombineMode
combineMode
=
CombineMode
.
Replace
);
void
SetClip
(
Region
region
,
CombineMode
combineMode
=
CombineMode
.
Replace
);
SmoothingMode
SmoothingMode
{
get
;
set
;
}
SmoothingMode
SmoothingMode
{
get
;
set
;
}
Matrix
Transform
{
get
;
set
;
}
Matrix
Transform
{
get
;
set
;
}
void
TranslateTransform
(
float
dx
,
float
dy
,
MatrixOrder
order
=
MatrixOrder
.
Pre
pend
);
void
TranslateTransform
(
float
dx
,
float
dy
,
MatrixOrder
order
=
MatrixOrder
.
Ap
pend
);
}
}
}
}
Source/Rendering/SvgRenderer.cs
View file @
7b5f2bb7
...
@@ -62,11 +62,11 @@ namespace Svg
...
@@ -62,11 +62,11 @@ namespace Svg
{
{
return
this
.
_innerGraphics
.
Clip
;
return
this
.
_innerGraphics
.
Clip
;
}
}
public
void
RotateTransform
(
float
fAngle
,
MatrixOrder
order
)
public
void
RotateTransform
(
float
fAngle
,
MatrixOrder
order
=
MatrixOrder
.
Append
)
{
{
this
.
_innerGraphics
.
RotateTransform
(
fAngle
,
order
);
this
.
_innerGraphics
.
RotateTransform
(
fAngle
,
order
);
}
}
public
void
ScaleTransform
(
float
sx
,
float
sy
,
MatrixOrder
order
)
public
void
ScaleTransform
(
float
sx
,
float
sy
,
MatrixOrder
order
=
MatrixOrder
.
Append
)
{
{
this
.
_innerGraphics
.
ScaleTransform
(
sx
,
sy
,
order
);
this
.
_innerGraphics
.
ScaleTransform
(
sx
,
sy
,
order
);
}
}
...
@@ -74,7 +74,7 @@ namespace Svg
...
@@ -74,7 +74,7 @@ namespace Svg
{
{
this
.
_innerGraphics
.
SetClip
(
region
,
combineMode
);
this
.
_innerGraphics
.
SetClip
(
region
,
combineMode
);
}
}
public
void
TranslateTransform
(
float
dx
,
float
dy
,
MatrixOrder
order
)
public
void
TranslateTransform
(
float
dx
,
float
dy
,
MatrixOrder
order
=
MatrixOrder
.
Append
)
{
{
this
.
_innerGraphics
.
TranslateTransform
(
dx
,
dy
,
order
);
this
.
_innerGraphics
.
TranslateTransform
(
dx
,
dy
,
order
);
}
}
...
...
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