objectAreaInfo.setWidthRes(resolution);
objectAreaInfo.setHeightRes(resolution);
AFPUnitConverter unitConv = paintingState.getUnitConverter();
objectAreaInfo.setWidth(Math.round(unitConv.mpt2units(width)));
objectAreaInfo.setHeight(Math.round(unitConv.mpt2units(height)));
int rotation = paintingState.getRotation();
objectAreaInfo.setRotation(rotation);