Skip to content
Browse files

create AdvancedStroke when have penTransform

svn path=/trunk/mcs/; revision=54346
  • Loading branch information...
1 parent 55336d1 commit ec6a49ba2f0691253126276ddf655ba82aaeb829 Konstantin Triger committed Dec 14, 2005
View
4 mcs/class/System.Drawing/System.Drawing/ChangeLog
@@ -1,3 +1,7 @@
+2005-12-14 Konstantin Triger <kostat@mainsoft.com>
+
+ * StrokeFactory.jvm.cs: create AdvancedStroke when have penTransform.
+
2005-12-13 Konstantin Triger <kostat@mainsoft.com>
* Bitmap.jvm.cs: Fix MakeTransparent.
View
4 mcs/class/System.Drawing/System.Drawing/StrokeFactory.jvm.cs
@@ -18,7 +18,9 @@ sealed class AdvancedCreator : StrokeCreator {
public awt.Stroke Create(float width, int cap, int join, float miterlimit, float[] dash, float dash_phase, geom.AffineTransform penTransform,
geom.AffineTransform outputTransform, PenFit penFit) {
- if ((outputTransform == null || outputTransform.isIdentity()) && (penFit == PenFit.NotThin))
+ if ((penFit == PenFit.NotThin) &&
+ (outputTransform == null || outputTransform.isIdentity()) &&
+ (penTransform == null || penTransform.isIdentity()))
return new awt.BasicStroke(width, cap, join, miterlimit, dash, dash_phase);
return new System.Drawing.AdvancedStroke(width, cap, join, miterlimit, dash, dash_phase, penTransform, outputTransform, penFit);
}

0 comments on commit ec6a49b

Please sign in to comment.
Something went wrong with that request. Please try again.