No you can't do that. The datawindow is not like a DOD as it is inherently tied to how the data is laid out in the file.
If you change the datawindow you must write a new file. I noticed that most packages (mental ray, photoshop, framecycler etc.) handle the datawindow very badly so I decided to write all my frames out in full (i.e. datawindow = displaywindow) and create a custom header attribute that contains the DOD information. Then I modified the shake reader and writer to handle that custom header attribute. .. so actually I *can* change the DOD at will without writing a new file. barnaby. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ZiZi Zhao Sent: Tuesday, May 02, 2006 5:09 PM To: [email protected] Subject: [Openexr-devel] modify datawindow in input EXR file header After I open an EXR image and detect its true datawindow, can I directly modify the xmin, ymin, xmax, ymax values in the input EXR header? Do I have to open and write a new EXR file with datawindow Cropped Image? Is the input EXR image file opened in ImfOpenInputFile( filename ) with "r+" or "r" only ? If not, it seems that I have to open a new EXR image file and set new datawindow values in header, but everything else stays the same as the input EXR image. Thanks in advance, zizi _______________________________________________ Openexr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/openexr-devel _______________________________________________ Openexr-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/openexr-devel
