VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
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);
}
let focusedIndexvalue = imageViewer.get_FocusedIndex();
if (focusedIndexvalue > -1) {
var instance = new Vintasoft.Imaging.ImageProcessing.WebRotateCommandJS();
instance.set_Angle(90);
//var value = instance.get_Angle();//Existing Angle of Image
instance.execute(docViewer.get_ImageViewer().get_Images().getImage(focusedIndexvalue),
isImageProcessing_success, errorImageProcessing_callback
);
}
However, as we can rotate using WebImageViewerJS.setCustomImageRotationAngle as well, which is for image in web image viewer. This mean, if we rotate using setCustomImageRotationAngle then there no way to save it physically.