//UPGRADE_NOTE: ref keyword was added to struct-type parameters. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1303'" public static Rect build(ref System.Drawing.RectangleF r) { Rect rect = new Rect(); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.xMin = (int) System.Math.Round((double) ((double) r.X * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.yMin = (int) System.Math.Round((double) ((double) r.Y * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.xMax = (int) System.Math.Round((double) ((double) (r.X + r.Width) * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.yMax = (int) System.Math.Round((double) ((double) (r.Y + r.Height) * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); return rect; }
//UPGRADE_NOTE: ref keyword was added to struct-type parameters. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1303'" public static Rect build(ref System.Drawing.RectangleF r) { Rect rect = new Rect(); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.xMin = (int)System.Math.Round((double)((double)r.X * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.yMin = (int)System.Math.Round((double)((double)r.Y * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.xMax = (int)System.Math.Round((double)((double)(r.X + r.Width) * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); //UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. "ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1042'" rect.yMax = (int)System.Math.Round((double)((double)(r.Y + r.Height) * flash.swf.SwfConstants_Fields.TWIPS_PER_PIXEL)); return(rect); }
public virtual void encodeRect(Rect r, SwfEncoder w) { int nBits = r.nbits(); w.writeUBits(nBits, 5); w.writeSBits(r.xMin, nBits); w.writeSBits(r.xMax, nBits); w.writeSBits(r.yMin, nBits); w.writeSBits(r.yMax, nBits); w.flushBits(); }