Rotate the Image Collection
Posted: Wed Jan 13, 2021 7:46 pm
This is the code from the example now. I would like to be able to pass in the entire collection and have a rotate all 90, 180, 270 option as well. Has anyone achieved this?
Code: Select all
case "Rotate90Button":
case "Rotate180Button":
case "Rotate270Button":
var angle = 90;
if (id === "Rotate180Button")
angle = 180;
else if (id === "Rotate270Button")
angle = 270;
var ajaxParams = {
type: 'POST',
data: {
twainSessionId: twainSessionId,
imageId: imageId,
angle: angle,
thumbnailWidth: _thumbnailWidth,
thumbnailHeight: _thumbnailHeight
}
}
request = new Vintasoft.Shared.WebRequestJS("RotateImage",
__modifiedImage_success,
__processing_fail,
ajaxParams);
break;