Crop the image using the guide and click “Done”. Select one of the pictures and click “ Crop“. Create a rectangle to act as a guide for the split. Here is an example of splitting a picture in Canva:ġ. You can also use the “Crop tool” to select a specific area of the image and then crop out the rest. You can use the “Rectangle Tool” to draw two lines across the image or use the “Grid tool “ to divide the image into a number of sections. Please mark this thread as answer if you think it is Private void button3_Click(object sender, RoutedEventArgs e) Private void button2_Click(object sender, RoutedEventArgs e)īitmapImage myBitmapImage = new BitmapImage(new Uri("c:\\1.JPG")) Private void button1_Click(object sender, RoutedEventArgs e)īitmapImage myBitmapImage = new BitmapImage( new Uri("c:\\1.JPG")) But no line (fits directly) between 2nd and 3rd row.Ĭan someone enlighten me on how to come out with the decimals, so that I can cut my image in equal sizes and fit to the grid. Now that I use 0.35, it split the image better, however, there is a white line at the line between first row and second row, and a white line at the line between third and 4th row. While I thought it should be ib.Viewbox = New Rect(top, left, 0.25, 0.25) since there are 4 rows and 4 columns (therefore 100/4, from what I read from MSDN), it doesn't split the image well. I was playing around with the decimals at the line ib.Viewbox = New Rect(top, left, 0.25, 0.35) Private Function CreatePieces(ByVal top As Decimal, ByVal left As Decimal) As Rectangle
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |