Exemple #1
0
        /// <summary>
        /// imageの(left, top)からwidth, heightの範囲を切り抜いたBitmapを返す
        /// </summary>
        public static System.Drawing.Bitmap CreateTrimImage(Bitmap image,
                                                            int left,
                                                            int top,
                                                            int width,
                                                            int height)
        {
            ImageTrim imageTrim = new ImageTrim();

            return(imageTrim.Execute(image, left, top, width, height));
        }
Exemple #2
0
        /// <summary>
        /// 回転後の矩形4隅および回転角度から切り抜き画像を作成
        /// </summary>
        /// <returns></returns>
        public static System.Drawing.Bitmap CreateTrimImage(Bitmap image,
                                                            Point leftTop,
                                                            Point leftBottom,
                                                            Point rightTop,
                                                            Point rightBottom,
                                                            int degree)
        {
            ImageTrim imageTrim = new ImageTrim();

            return(imageTrim.Execute(image, leftTop, leftBottom, rightTop, rightBottom, degree));
        }