Example usage for java.awt.image.renderable ParameterBlock getIntParameter

List of usage examples for java.awt.image.renderable ParameterBlock getIntParameter

Introduction

In this page you can find the example usage for java.awt.image.renderable ParameterBlock getIntParameter.

Prototype

public int getIntParameter(int index) 

Source Link

Document

A convenience method to return a parameter as an int.

Usage

From source file:CheckAlignmentRIF.java

public RenderedImage create(ParameterBlock paramBlock, RenderingHints renderingHints) {

    RenderedImage source1 = paramBlock.getRenderedSource(0);
    RenderedImage source2 = paramBlock.getRenderedSource(1);
    int samplingPeriod = paramBlock.getIntParameter(0);
    ImageLayout layout = null;//from   w  w w . jav a 2 s  .  co m
    return new CheckAlignmentOpImage(source1, source2, samplingPeriod, layout, renderingHints, false);
}