* Indication whether the result is a preview image.
* @return Indication whether the draw succeeded.
*/
private boolean drawWatermarkImage(SubstanceSkin skin, Graphics2D graphics,
int x, int y, int width, int height, boolean isPreview) {
SubstanceColorScheme scheme = skin.getWatermarkColorScheme();
if (isPreview) {
graphics.drawImage(NoiseFactory.getNoiseImage(skin, width, height,
this.xFactor, this.yFactor, this.hasConstantZ,
this.noiseFilter, this.toBlur, true), x, y, null);
} else {
int alpha = scheme.isDark() ? 200 : 140;
graphics.setComposite(AlphaComposite.getInstance(
AlphaComposite.SRC_OVER, alpha / 255.0f));
graphics.drawImage(NoiseFactory.getNoiseImage(skin, width, height,
this.xFactor, this.yFactor, this.hasConstantZ,
this.noiseFilter, this.toBlur, false), x, y, null);