/**
* <b>Command ESC * r C</b>
* The End Raster Graphics command signifies the end of a raster graphic data transfer.
*
*
* <b>Notes</b>
* Receipt of this command causes 5 operations:
* ? Resets the raster compression seed row to zeros.
* ? Moves the cursor to the raster row immediately following the end of the raster area
* (if a source raster height was specified).
* ? Allows raster commands which were previously locked out to be processed.
* ? Sets compression mode to 0 (no compression)
* ? Defaults the left graphics margin to X-position 0.
* <i>implemented Sep 21, 2005</i>
*
*/
package org.getopt.pcl5.PCL5Interpreter.cmd;
import java.io.IOException;
import java.io.InputStream;
import org.getopt.pcl5.PrinterState;
public class CmdEndRasterGraphicsEx extends EscExtendedCommandPCL5 {
public CmdEndRasterGraphicsEx(PrinterState printerState) {
super(printerState);
}
public boolean execute(char family, char subfamily, String parameter,
char cmd, InputStream in) throws IOException {
if (family == '*' && subfamily == 'r' && cmd == 'C') {
_printerState.endGraphicsMode();
return true;
}
return false;
}
}