Rotate the Image Collection

Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.

Moderator: Alex

Post Reply
Posts: 1
Joined: Wed Jan 13, 2021 7:41 pm

Rotate the Image Collection

Post by rowdybull »

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",
Site Admin
Posts: 2044
Joined: Thu Jul 10, 2008 2:21 pm

Re: Rotate the Image Collection

Post by Alex »


Do you want to rotate image for preview or saving?

You can rotate all images in web image viewer using WebImageViewerJS.set_ImageRotationAngle function.
You can rotate separate image(s) in web image viewer using WebImageViewerJS.setCustomImageRotationAngle function.

If you want to rotate images and save rotated images to a file, you need to rotate images using WebRotateCommandJS class and save images to a file.

Best regards, Alexander
Post Reply