( self )
| 267 | |
| 268 | |
| 269 | def testWindowWrite( self ) : |
| 270 | |
| 271 | dataWindow = imath.Box2i( |
| 272 | imath.V2i( 0, 0 ), |
| 273 | imath.V2i( 99, 99 ) |
| 274 | ) |
| 275 | |
| 276 | imgOrig = self.__makeFloatImage( dataWindow, dataWindow ) |
| 277 | |
| 278 | imgOrig.displayWindow = imath.Box2i( |
| 279 | imath.V2i( -20, -20 ), |
| 280 | imath.V2i( 199, 199 ) |
| 281 | ) |
| 282 | |
| 283 | w = IECore.Writer.create( imgOrig, os.path.join( "test", "IECoreImage", "data", "exr", "output.exr" ) ) |
| 284 | self.assertIsInstance( w, IECoreImage.ImageWriter ) |
| 285 | w.write() |
| 286 | |
| 287 | self.assertTrue( os.path.exists( os.path.join( "test", "IECoreImage", "data", "exr", "output.exr" ) ) ) |
| 288 | |
| 289 | r = IECore.Reader.create( os.path.join( "test", "IECoreImage", "data", "exr", "output.exr" ) ) |
| 290 | imgNew = r.read() |
| 291 | |
| 292 | self.__verifyImageRGB( imgNew, imgOrig ) |
| 293 | |
| 294 | def testOversizeDataWindow( self ) : |
| 295 |
nothing calls this directly
no test coverage detected