コード例 #1
0
        public void Flow(string path, bool disorder)
        {
            InitRandomPictureBox();
            Image bm = CutPicture.Resize(path, 600, 600);

            CutPicture.BitMapList = new List <Bitmap>();
            for (int y = 0; y < 600; y += sidelength)
            {
                for (int x = 0; x < 600; x += sidelength)
                {
                    Bitmap temp = CutPicture.Cut(bm, x, y, sidelength, sidelength);
                    CutPicture.BitMapList.Add(temp);
                }
            }
            ImporBitMap(disorder);
        }
コード例 #2
0
ファイル: Form_Original.cs プロジェクト: JIALANT/Puzzle-Game
 private void Form_Original_Load(object sender, EventArgs e)
 {
     pic_Original.Image = CutPicture.Resize(picpath, 600, 600);
 }