public VolatileImage createCompatibleVolatileImage(int width, int height,
ImageCapabilities caps, int transparency) throws AWTException {
VolatileImage res = createCompatibleVolatileImage(width, height, transparency);
if (!res.getCapabilities().equals(caps)) {
// awt.14A=Can not create VolatileImage with specified capabilities
throw new AWTException(Messages.getString("awt.14A")); //$NON-NLS-1$
}
return res;
}