Possible bug when saving an image to PCX format.
Posted: 2008-06-16T12:47:39-07:00
I have the following code:
Image rotate_frame;
rotate_frame.read("C:\FRAME.bmp");
rotate_frame.rotate(5*180/PI);
rotate_frame.write("C:\ROTATED_FRAME.pcx");
The program saves the file ROTATED_FRAME but when I try to open it with photoshop it says that it is a corrupted file. I removed rotate_frame.rotate(5*180/PI); line and the file is saved and opened normally. Any clues? Probably it is a bug because if i save the image in bmp. it is opened normally. I appreciate any help! Thanks!
Image rotate_frame;
rotate_frame.read("C:\FRAME.bmp");
rotate_frame.rotate(5*180/PI);
rotate_frame.write("C:\ROTATED_FRAME.pcx");
The program saves the file ROTATED_FRAME but when I try to open it with photoshop it says that it is a corrupted file. I removed rotate_frame.rotate(5*180/PI); line and the file is saved and opened normally. Any clues? Probably it is a bug because if i save the image in bmp. it is opened normally. I appreciate any help! Thanks!