ccitt.writeTo(out);
}
/** {@inheritDoc} */
public String getImplicitFilter() {
PSDictionary dict = new PSDictionary();
dict.put("/Columns", new Integer(ccitt.getSize().getWidthPx()));
int compression = ccitt.getCompression();
switch (compression) {
case TIFFImage.COMP_FAX_G3_1D :
dict.put("/K", new Integer(0));
break;
case TIFFImage.COMP_FAX_G3_2D :
dict.put("/K", new Integer(1));
break;
case TIFFImage.COMP_FAX_G4_2D :
dict.put("/K", new Integer(-1));
break;
default:
throw new IllegalStateException(
"Invalid compression scheme: " + compression);
}
return dict.toString() + " /CCITTFaxDecode";
}