

Private void MoveButton(Button ClickedButton ) Now I have to make 15 pieces of this image and that to be of size 80x80 pixels. Now I load the default image and store it in a variable MainBitmap. I stored all the buttons in an ArrayList alAllButtons. Using the codeįirst of all, I created a Panel. Like this way, you have to arrange the tiles so as to make the image as shown in the figure on the right side. Whenever you click a tile (button), it shifts towards the empty block if there is a way. Only the adjoining tiles can take its place. In this game, there is one empty tile where other tiles can come. In this game, there are 15 tiles or buttons which you have to arrange numerically, or if you are playing in the picture mode then you have to arrange the titles in order to get the image as shown on the right side.

So I wrote all the functions on my own because I did not wanted to use any of the APIs. NET framework doesn't provide us with any of such tools. While making this program, I needed some functions which could crop, resize, clip the image.

You will also learn how to dynamically move and edit the controls. In this article, you can learn how to edit images without using Windows API or other functions.
