public class Pixers
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
static Pixer |
clip(Pixer base,
java.awt.Rectangle clip) |
Returns a clipped version of a given pixel iterator whose extent
is not known.
|
static Pixer |
clip(Pixer base,
java.awt.Rectangle clip,
int xminBase,
int xmaxBase,
int yminBase,
int ymaxBase) |
Returns a clipped version of a given pixel iterator whose extent
is known.
|
static Pixer |
createArrayPixer(int[] xs,
int[] ys,
int np) |
Returns a new pixer that iterates over a given list of X,Y coordinates.
|
static Pixer |
translate(Pixer base,
int tx,
int ty) |
Returns a translated version of a pixel iterator.
|
public static Pixer createArrayPixer(int[] xs, int[] ys, int np)
xs - array of X valuesys - array of Y valuesnp - number of points (xs and ys must be at least this length)public static Pixer translate(Pixer base, int tx, int ty)
base - base pixel iteratortx - offset in X directionty - offset in Y directionpublic static Pixer clip(Pixer base, java.awt.Rectangle clip)
base - base pixel iteratorclip - clipping rectanglepublic static Pixer clip(Pixer base, java.awt.Rectangle clip, int xminBase, int xmaxBase, int yminBase, int ymaxBase)
base - base pixel iteratorclip - clipping rectanglexminBase - lower limit of X values dispensed by base pixerxmaxBase - upper limit of X values dispensed by base pixeryminBase - lower limit of Y values dispensed by base pixerymaxBase - upper limit of Y values dispensed by base pixerCopyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.