Example #1
0
        public override void GenerateRegion(Graphics graphics, Rectangle rectSource, Rectangle rectDest)
        {
            if (this.ZoomRatio.Width == 1 && this.ZoomRatio.Height == 1)
            {
                graphics.ImageInterpolation = ImageInterpolation.None;
            }
            else
            {
                graphics.ImageInterpolation = ImageInterpolation.Default;
            }

            if (BGI != null)
            {
                BGI.DrawRegion(graphics, rectSource, rectDest);
            }
            else if (RipDocument.Image != null)
            {
                graphics.DrawImage(RipDocument.Image, rectSource, rectDest);
            }
        }