Rank: Newbie
Groups: Guest
Joined: 9/1/2008(UTC) Posts: 7
|
Is it possible to rotate an individual frame in a multi-page tiff?
|
|
|
|
Rank: Advanced Member
Groups: Guest
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 |
|
|
|
|
Rank: Newbie
Groups: Guest
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?
|
|
|
|
Rank: Newbie
Groups: Guest
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); }
|
|
|
|
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.