This project has moved and is read-only. For the latest updates, please go here.

How join the images processed by tilecrop ?

Jul 14, 2015 at 1:14 PM
I want process single tile and afetr recompose the image with the tiles proceesed ? there is an inverse method of croptile ?
Jul 14, 2015 at 7:56 PM
Edited Jul 14, 2015 at 7:57 PM
There is no method that does the reverse but you can recreate the image with the help of the Page property of MagickImage. Below is a simple example:
using (MagickImage image = new MagickImage("gradient:yellow-purple", 200, 200))
  using (MagickImage result = new MagickImage("xc:black", 200, 200))
    foreach (MagickImage tile in image.CropToTiles(50, 50))
      // Store the position because some methods will change the value.
      MagickGeometry offset = tile.Page;

      // Perform operations on the image

      // Draw the result on the black canvas at the stored offset
      result.Composite(tile, offset);

      // Don't forget to dispose the tile