Top Methods
com.sun.javafx.image

public Interface PixelConverter<T extends Buffer, U extends Buffer>

Known Direct Subinterfaces
com.sun.javafx.image.ByteToBytePixelConverter, com.sun.javafx.image.ByteToIntPixelConverter, com.sun.javafx.image.IntToBytePixelConverter, com.sun.javafx.image.IntToIntPixelConverter
Imports
java.nio.Buffer

Method Summary

Modifier and TypeMethod and Description
public void
convert(T
the nio buffer containing the source data
srcbuf
,
int
the absolute location in the buffer of the first source pixel data
srcoff
,
int
number of buffer elements between rows of data in the source
srcscanelems
,
U
the nio buffer containing the destination data
dstbuf
,
int
the absolute location in the buffer of the first destination pixel data
dstoff
,
int
number of buffer elements between rows of data in the destination
dstscanelems
,
int
the number of pixels to process across before moving to the next row
w
,
int
the number of rows of pixels to process
h
)

Copies a rectangular region of data from the source buffer to the destination buffer using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanelems + x * srcelemsperpixel + srcoff;
    int dstpos = y * dstscanelems + x * dstelemsperpixel + dstoff;
    for each j : 0 <= j < srcelemsperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstelemsperpixel {
        store data into dstbuf.put(dstpos + k, pixel data);
    }
}
public PixelGetter<T>
public PixelSetter<U>

Method Detail

convertback to summary
public void convert(T srcbuf, int srcoff, int srcscanelems, U dstbuf, int dstoff, int dstscanelems, int w, int h)

Copies a rectangular region of data from the source buffer to the destination buffer using the following relationship:

for each xy : 0 <= x,y < w,h {
    int srcpos = y * srcscanelems + x * srcelemsperpixel + srcoff;
    int dstpos = y * dstscanelems + x * dstelemsperpixel + dstoff;
    for each j : 0 <= j < srcelemsperpixel {
        load data from srcbuf.get(srcpos + j);
    }
    convert data to destination pixel format
    for each k : 0 <= k < dstelemsperpixel {
        store data into dstbuf.put(dstpos + k, pixel data);
    }
}
Parameters
srcbuf:T

the nio buffer containing the source data

srcoff:int

the absolute location in the buffer of the first source pixel data

srcscanelems:int

number of buffer elements between rows of data in the source

dstbuf:U

the nio buffer containing the destination data

dstoff:int

the absolute location in the buffer of the first destination pixel data

dstscanelems:int

number of buffer elements between rows of data in the destination

w:int

the number of pixels to process across before moving to the next row

h:int

the number of rows of pixels to process

getGetterback to summary
public PixelGetter<T> getGetter()
getSetterback to summary
public PixelSetter<U> getSetter()