Пример #1
0
        public void DrawNoScaleLine(HCCanvas ACanvas, Point[] APoints)
        {
            SIZE size = new SIZE();

            GDI.SetViewportExtEx(ACanvas.Handle, FWindowWidth, FWindowHeight, ref size);
            try
            {
                ACanvas.DrawLines(APoints);
            }
            finally
            {
                GDI.SetViewportExtEx(ACanvas.Handle, (int)Math.Round(FWindowWidth * FScaleX),
                                     (int)Math.Round(FWindowHeight * FScaleY), ref size);
            }
        }