Package org.eclipse.imagen.media.util
Class JDKWorkarounds
Object
JDKWorkarounds
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanWorkaround for JDK 1.3 bug 4326636 (bpb 30 March 2000).static voidsetRect(WritableRaster dstRaster, Raster srcRaster) static voidsetRect(WritableRaster dstRaster, Raster srcRaster, int dx, int dy)
-
Method Details
-
setRect
-
setRect
-
areCompatibleDataModels
Workaround for JDK 1.3 bug 4326636 (bpb 30 March 2000).Check whether the given SampleModel and ColorModel are compatible.
This is required because in JDK 1.3 the ComponentColorModel implementation of isCompatibleSampleModel() only checks whether the SampleModel is a ComponentSampleModel with the same transferType as the ColorModel. No check of the number of components or bit depth is effected.
- Throws:
IllegalArgumentException- if either parameter is null.
-