public void DrawPolygon (Polygon poly, float w) { SelectNullBrush (); SelectPenRecord (w); StartRecord (Function.Polygon); rw.Write ((ushort)poly.Points.Count); foreach (var p in poly.Points) { WriteRecordCoord (p.Y, p.X); } EndRecord (); }