示例#1
0
        public static Bitmap CutJPG(string gpath, int id, int type, int W, int H)
        {
            //MessageBox.Show(SET.Length.ToString());
            int x = 25; int y = 54; int y2 = 51;
            int w = 126; int h = 126;

            if (type > 0x800000)
            {
                y = y2;
            }
            return(PIC.zoom(PIC.cut(PIC.GetBitmap(gpath + "pics\\" + id.ToString() + ".jpg"), x, y, w, h), W, H));
        }
示例#2
0
        public static void CutJPG(string gpath, int id, int type, string cpath, int W, int H)
        {
            int x = 25; int y = 54; int y2 = 51;
            int w = 126; int h = 126;
            int zl = 96;

            if (type > 0x800000)
            {
                y = y2;
            }
            PIC.savejpg(PIC.zoom(PIC.cut(PIC.GetBitmap(gpath + "pics\\" + id.ToString() + ".jpg"), x, y, w, h), W, H), cpath + id.ToString() + ".jpg", zl);
        }