Top Fields Constructors Methods
com.sun.javafx.iio.common

public Class RoughScaler

extends Object
implements PushbroomScaler
Class Inheritance
All Implemented Interfaces
com.sun.javafx.iio.common.PushbroomScaler
Imports
java.nio.ByteBuffer

Field Summary

Modifier and TypeField and Description
protected int[]
protected ByteBuffer
protected int
protected int
protected int
protected int
protected int
protected double
protected int

Constructor Summary

AccessConstructor and Description
public
RoughScaler(int
The source image width
sourceWidth
,
int
The source image height
sourceHeight
,
int
The number of components per pixel in the images
numBands
,
int
The destination image width
destWidth
,
int
The destination image height
destHeight
)

Instantiates a new RoughScaler object.

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer

Returns:

The destination buffer.
getDestination
()

Implements com.sun.javafx.iio.common.PushbroomScaler.getDestination.

Retrieves the destination buffer.

public boolean

Returns:

Whether the destination image is complete.
putSourceScanline
(byte[]
One scanline of source data.
scanline
,
int
The offset into the buffer.
off
)

Implements com.sun.javafx.iio.common.PushbroomScaler.putSourceScanline.

Push one scanline of source pixels into the scaling engine.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

colPositionsback to summary
protected int[] colPositions
destBufback to summary
protected ByteBuffer destBuf
destHeightback to summary
protected int destHeight
destLineback to summary
protected int destLine
destWidthback to summary
protected int destWidth
nextSourceLineback to summary
protected int nextSourceLine
numBandsback to summary
protected int numBands
scaleYback to summary
protected double scaleY
sourceLineback to summary
protected int sourceLine

Constructor Detail

RoughScalerback to summary
public RoughScaler(int sourceWidth, int sourceHeight, int numBands, int destWidth, int destHeight)

Instantiates a new RoughScaler object.

Parameters
sourceWidth:int

The source image width

sourceHeight:int

The source image height

numBands:int

The number of components per pixel in the images

destWidth:int

The destination image width

destHeight:int

The destination image height

Exceptions
IllegalArgumentException:
if any of the parameters is non-positive.

Method Detail

getDestinationback to summary
public ByteBuffer getDestination()

Implements com.sun.javafx.iio.common.PushbroomScaler.getDestination.

Retrieves the destination buffer.

Returns:ByteBuffer

The destination buffer.

Annotations
@Override
putSourceScanlineback to summary
public boolean putSourceScanline(byte[] scanline, int off)

Implements com.sun.javafx.iio.common.PushbroomScaler.putSourceScanline.

Push one scanline of source pixels into the scaling engine. A nearest neighbor interpolation algorithm is used.

Parameters
scanline:byte[]

One scanline of source data.

off:int

The offset into the buffer.

Returns:boolean

Whether the destination image is complete.

Annotations
@Override
Exceptions
IllegalArgumentException:
if off < 0.