Manipulate images

When you have grabbed images in Dynamsoft imager viewer, you can start manipulating the images. You can:

  1. Go through each image by calling the method setIndex()

    /* Show the 3rd image in the buffer */
    imageViewer.image.setIndex(2); 
    
  2. Show multiple images by changing the view mode (other than 1*1 or -1*-1) using setImageViewMode()
    /* Show images in buffer with 2 * 2 view */
    imageViewer.ui.setImageViewMode(2, 2); 
    
  3. manipulateimages

  4. Rotate, flip, mirror or crop an image, etc.

    imageViewer.image.mirror(0); 
    imageViewer.image.flip(1);  
    imageViewer.image.rotateRight(2);  
    imageViewer.image.crop(3,101,243,680,831);
    imageViewer.image.rotateLeft(3);
    

    imageedit

Also, you can remove/delete multiple images by specified indices using the method remove.

Related methods