Example usage for java.awt Image SCALE_REPLICATE

List of usage examples for java.awt Image SCALE_REPLICATE

Introduction

In this page you can find the example usage for java.awt Image SCALE_REPLICATE.

Prototype

int SCALE_REPLICATE

To view the source code for java.awt Image SCALE_REPLICATE.

Click Source Link

Document

Use the image scaling algorithm embodied in the ReplicateScaleFilter class.

Usage

From source file:se.unlogic.hierarchy.foregroundmodules.imagegallery.GalleryModule.java

private void checkSettings(MutableSettingHandler mutableSettingHandler) {

    Integer thumbQuality = mutableSettingHandler.getInt("thumbQuality");

    if (thumbQuality != null && (thumbQuality == Image.SCALE_AREA_AVERAGING || thumbQuality == Image.SCALE_FAST
            || thumbQuality == Image.SCALE_REPLICATE || thumbQuality == Image.SCALE_SMOOTH)) {
        this.thumbQuality = thumbQuality;
    } else if (thumbQuality != null) {
        log.warn("Illegal thumbQuality setting value detected, " + thumbQuality + " in module "
                + this.moduleDescriptor);
    }//from w w w.  j  a va2  s  .co  m
}