throws RecordCreationException
{
if (image == null)
{
// the simple form, the complex form would need a DIB implementation.
final MfRecord record = new MfRecord(RECORD_SIZE_SIMPLE);
record.setLongParam(POS_OPERATION, getOperation());
final Rectangle source = getSource();
record.setParam(POS_SRC_Y, (int) source.getY());
record.setParam(POS_SRC_X, (int) source.getX());
// Ignore the handle to the device context
final Rectangle dest = getDestination();
record.setParam(4, 0); // the handle to the device context ... a stored DIB?.
record.setParam(SIMPLE_POS_HEIGHT, (int) dest.getHeight());
record.setParam(SIMPLE_POS_WIDTH, (int) dest.getWidth());
record.setParam(SIMPLE_POS_DST_Y, (int) dest.getY());
record.setParam(SIMPLE_POS_DST_X, (int) dest.getX());
return record;
}
// todo implement the complex form
throw new RecordCreationException("The extended Format of DibBitBlt is not supported");