(ColorSpace src)
| 595 | } |
| 596 | |
| 597 | public ColorConvertOp getColorConvertOp(ColorSpace src) |
| 598 | { |
| 599 | // The overhead associated with initializing ColorConvertOps is |
| 600 | // enough to justify maintaining a static lookup table. |
| 601 | if (converters.containsKey(src.getType())) |
| 602 | return converters.get(src.getType()); |
| 603 | ColorSpace dst = model.getColorSpace(); |
| 604 | converters.put(src.getType(), new ColorConvertOp(src, dst, null)); |
| 605 | return converters.get(src.getType()); |
| 606 | } |
| 607 | |
| 608 | public ByteOrder getByteOrder() |
| 609 | { |