Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
tw3  
#1 Posted : Tuesday, May 26, 2009 12:36:32 PM(UTC)
tw3

Rank: Newbie

Groups: Member
Joined: 9/1/2008(UTC)
Posts: 7

Is it possible to rotate an individual frame in a multi-page tiff?
Tamila  
#2 Posted : Tuesday, May 26, 2009 8:49:21 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Hello,

Unfortunately, Graphics Mill cannot edit .tiff files directly. Nevertheless the library is able to read and write them frame by frame. This way to perform your task you need to extract all frames from a .tiff file, do rotation of particular frames and save all frames as new .tiff file.

Edited by user Wednesday, May 27, 2009 1:53:22 AM(UTC)  | Reason: Not specified

Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
tw3  
#3 Posted : Tuesday, May 26, 2009 10:16:36 PM(UTC)
tw3

Rank: Newbie

Groups: Member
Joined: 9/1/2008(UTC)
Posts: 7

So with the Tiff Viewer Demo you provide. Each page is a separate frame being viewed; can you rotate the frame and how would you do so?
tw3  
#4 Posted : Wednesday, May 27, 2009 10:18:32 AM(UTC)
tw3

Rank: Newbie

Groups: Member
Joined: 9/1/2008(UTC)
Posts: 7

Figured it out using the Tiff Viewer Demo. Here is the code in case anyone else is interested.

js
function rotateCCW_Click() {
bitmapViewer1.invokeRemoteMethod("RotateFrameCounterClockwise");
}

function rotateCW_Click() {
bitmapViewer1.invokeRemoteMethod("RotateFrameClockwise");
}

c#
[RemoteScriptingMethod()]
public void RotateFrameClockwise()
{
Aurigma.GraphicsMill.Transforms.RotateAndFlip rotateAndFlip = new Aurigma.GraphicsMill.Transforms.RotateAndFlip();
rotateAndFlip.Mode = System.Drawing.RotateFlipType.Rotate90FlipNone;
rotateAndFlip.ApplyTransform(BitmapViewerPreviewImage.Bitmap);
}
[RemoteScriptingMethod()]
public void RotateFrameCounterClockwise()
{
Aurigma.GraphicsMill.Transforms.RotateAndFlip rotateAndFlip = new Aurigma.GraphicsMill.Transforms.RotateAndFlip();
rotateAndFlip.Mode = System.Drawing.RotateFlipType.Rotate270FlipNone;
rotateAndFlip.ApplyTransform(BitmapViewerPreviewImage.Bitmap);
}
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.