I would like to be able to rotate a jpeg and write it back to the same file. My code looks something like this:
Code:
Aurigma.GraphicsMill.Codecs.LosslessJpegTransform trans = new Aurigma.GraphicsMill.Codecs.LosslessJpegTransform();
trans.Open(item.Pidl.Path);
trans.WriteRotated(item.Pidl.Path, System.Drawing.RotateFlipType.Rotate90FlipNone);
trans.Close();
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.
Thanks,
Brad