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



Go to last post Go to first unread
#1 Posted : Thursday, March 23, 2006 2:52:36 AM(UTC)

Rank: Member

Groups: Member
Joined: 3/23/2006(UTC)
Posts: 14

I would like to be able to rotate a jpeg and write it back to the same file. My code looks something like this:

Aurigma.GraphicsMill.Codecs.LosslessJpegTransform trans = new Aurigma.GraphicsMill.Codecs.LosslessJpegTransform();

trans.WriteRotated(item.Pidl.Path, System.Drawing.RotateFlipType.Rotate90FlipNone);

When I get to the WriteRotated command, an error is thrown because the file is being used by another process (trans.Open). I'm sure I can figure out a work around, but I just wanted to make sure I wasn't missing a step.


Edited by user Thursday, December 20, 2007 5:00:08 PM(UTC)  | Reason: Not specified

#2 Posted : Thursday, March 23, 2006 12:43:09 PM(UTC)

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Brad,

Unfortunately you cannot load and save an image from/into the same file. In your case you should save your result image into temporary file and then rename it to file name which you need.
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
Users browsing this topic
Similar Topics
INFO: ThumbnailListView Does Not Display JPEG Images Modified Using LossLessJpegTransform Correctly (Archive - Graphics Mill)
by ChingYen 4/5/2008 1:55:29 PM(UTC)
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.