コード例 #1
0
ファイル: Graphics.cs プロジェクト: andyhebear/mogregis3d
 public virtual void set_Renamed(State state)
 {
     this.scene = state.scene;
     //UPGRADE_ISSUE: Method 'java.awt.geom.AffineTransform.setTransform' was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1000_javaawtgeomAffineTransformsetTransform_javaawtgeomAffineTransform_3"'
     //TODO PENDING this.transform.setTransform(state.transform);
     this.font                      = state.font;
     this.strokeColor               = state.strokeColor;
     this.fillColor                 = state.fillColor;
     this.fillBrush                 = state.fillBrush;
     this.lineWidth                 = state.lineWidth;
     this.lineCap                   = state.lineCap;
     this.lineJoin                  = state.lineJoin;
     this.miterLimit                = state.miterLimit;
     this.lineDashLengths           = state.lineDashLengths;
     this.lineDashPhase             = state.lineDashPhase;
     this.fillRule                  = state.fillRule;
     this.textPosition              = state.textPosition;
     this.usesFractionalFontMetrics = state.usesFractionalFontMetrics;
 }
コード例 #2
0
ファイル: Graphics.cs プロジェクト: andyhebear/mogregis3d
 /// <summary> Constructs a new Graphics object using the given SceneContainer as
 /// the root node. The transformation matrix of the root node is also
 /// given. This matrix is used to position hinted glyphs properly.
 ///
 /// </summary>
 /// <param name="scene">The root node into which graphics is drawn.
 /// </param>
 /// <param name="transform">The transformation matrix of the root node.
 /// </param>
 public Graphics(SceneContainer scene, System.Drawing.Drawing2D.Matrix transform)
 {
     //UPGRADE_ISSUE: The following fragment of code could not be parsed and was not converted. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1156_3"'
     stateStack  = new Stack <State>();
     state       = newState();
     state.scene = scene;
     //UPGRADE_TODO: Method 'java.awt.geom.AffineTransform.clone' was converted to 'System.Drawing.Drawing2D.Matrix.Clone' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtgeomAffineTransformclone_3"'
     state.transform = (System.Drawing.Drawing2D.Matrix)transform.Clone();
     //UPGRADE_NOTE: If the given Font Name does not exist, a default Font instance is created. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1075_3"'
     //UPGRADE_TODO: Field 'java.awt.Font.PLAIN' was converted to 'System.Drawing.FontStyle.Regular' which has a different behavior. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1073_javaawtFontPLAIN_f_3"'
     state.font                      = new System.Drawing.Font("SansSerif", 12, System.Drawing.FontStyle.Regular);
     state.strokeColor               = new ScenicColor(0, 0, 0);
     state.fillColor                 = state.strokeColor;
     state.lineWidth                 = 1.0f;
     state.lineCap                   = LineCapStyle.BUTT_CAP;
     state.lineJoin                  = LineJoinStyle.BEVEL_JOIN;
     state.miterLimit                = 10.0f;
     state.lineDashLengths           = null;
     state.lineDashPhase             = 0.0f;
     state.fillRule                  = FillRule.ODD_WINDING;
     state.usesFractionalFontMetrics = false;
     path = new PathBuilder();
 }
コード例 #3
0
ファイル: Graphics.cs プロジェクト: andyhebear/mogregis3d
 /// <summary> Constructs a new Graphics object using the given SceneContainer as
 /// the root node.
 ///
 /// </summary>
 /// <param name="scene">The root node into which graphics is drawn.
 /// </param>
 public Graphics(SceneContainer scene)
     : this(scene, new System.Drawing.Drawing2D.Matrix())
 {
 }