| 309 | } |
| 310 | |
| 311 | M33f ImagePrimitive::uvToPixelMatrix() const |
| 312 | { |
| 313 | M33f result; |
| 314 | const Box2i &displayWindow = getDisplayWindow(); |
| 315 | V2i size = displayWindow.size() + V2i( 1 ); |
| 316 | result.translate( V2f( displayWindow.min.x, displayWindow.min.y ) - V2f( 0.5f ) ); |
| 317 | result.scale( V2f( size.x, size.y ) ); |
| 318 | return result; |
| 319 | } |
| 320 | |
| 321 | Imath::M33f ImagePrimitive::matrix( Space inputSpace, Space outputSpace ) const |
| 322 | { |