Additionally how we can use below API's
../vintasoft/api/MyVintasoftImageProcessingApi/Rotate
../vintasoft/api/MyVintasoftImageApi/GetImagesInfo
Code for rotate image:
Code: Select all
var imageViewer = docViewer.get_ImageViewer();
var focusedImageIndex = imageViewer.get_FocusedIndex();
if (focusedImageIndex !== -1) {
var focusedImageRotationAngle = imageViewer.getCustomImageRotationAngle(focusedImageIndex);
if (focusedImageRotationAngle === -1)
focusedImageRotationAngle = imageViewer.get_ImageRotationAngle();
imageViewer.setCustomImageRotationAngle(focusedImageIndex, focusedImageRotationAngle + 90);
}