* If this synthetic PrintSettings is passed to an Engine for printing,
* and if the Engine simply stretches its image to fit the imageable
* area, then the printed image will match the dialog's preview.
*/
public PrintSettings getPrintSettings() {
PrintSettings settings = new PrintSettings();
settings.setRenderingIntent(intent);
settings.setColorProfile(
(profile != null) ? profile.getICCProfile() : null
);
settings.setPrintBounds(imageRect);
settings.setPixelsPerInch(pixelsPerInch);
return settings;
}