예제 #1
0
        public void Resize(Rectangle rect, bool setRect)
        {
            if (setRect)
            {
                Rect = rect;
            }

            CreateBoundRectangle();

            if (Bmp != null && Rect.Width > 0 && Rect.Height > 0)
            {
                Bitmap bmp = Bmp.Resize(Rect.Width, Rect.Height);
                Bmp.Dispose();
                Bmp = bmp;
            }
        }