| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static enum | Resizer.
Order in which to apply filter |
| Modifier and Type | Field and Description |
|---|---|
| private int[] | bitsPerChannel
Number of bits per channel |
| private final boolean | coerce
Should filters be simplified if possible? |
| pack-priv static final boolean | |
| private static final double | EPSILON
Error tolerance |
| private int[] | |
| private final Resizer. | |
| private final Resizer. | |
| private static final int[] | |
| private final Resizer. | order
The order in which data is processed. |
| private final boolean | trimZeros
Should zeros be trimmed in x filter weight tables? |
| private int | weightBits
Number of bits in filter coefficients |
| private int |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Scanline | |
| private Weighttab[] | |
| private static boolean | Returns: true if x is an integer, false if not.the double to check x)Is x an integer? |
| public void | |
| private void | resizeXfirst(final Object src, final Rectangle srcBounds, final Object dst, final Rectangle dstBounds, final ParameterizedFilter xFilter, final ParameterizedFilter yFilter)
Filtered zoom, x direction filtering before y direction filtering Note when calling |
| private void | resizeYfirst(final Object src, final Rectangle srcBounds, final Object dst, final Rectangle dstBounds, final ParameterizedFilter xFilter, final ParameterizedFilter yFilter)
Filtered zoom, y direction filtering before x direction filtering |
| private ParameterizedFilter | simplifyFilter(final ParameterizedFilter
the parameterized filter instance to be simplified filter, final double the scale of the coordinate mapping scale, final double the offset of the coordinate mapping offset)Checks if our discrete sampling of an arbitrary continuous filter, parameterized by the filter spacing
( |
| bitsPerChannel | back to summary |
|---|---|
| private int[] bitsPerChannel Number of bits per channel | |
| coerce | back to summary |
|---|---|
| private final boolean coerce Should filters be simplified if possible? | |
| debug | back to summary |
|---|---|
| pack-priv static final boolean debug | |
| EPSILON | back to summary |
|---|---|
| private static final double EPSILON Error tolerance | |
| finalShift | back to summary |
|---|---|
| private int[] finalShift | |
| mappingX | back to summary |
|---|---|
| private final Resizer. | |
| mappingY | back to summary |
|---|---|
| private final Resizer. | |
| NO_SHIFT | back to summary |
|---|---|
| private static final int[] NO_SHIFT | |
| order | back to summary |
|---|---|
| private final Resizer. The order in which data is processed.
| |
| trimZeros | back to summary |
|---|---|
| private final boolean trimZeros Should zeros be trimmed in x filter weight tables? | |
| weightBits | back to summary |
|---|---|
| private int weightBits Number of bits in filter coefficients | |
| weightOne | back to summary |
|---|---|
| private int weightOne | |
| Resizer | back to summary |
|---|---|
| public Resizer(double scale) Creates an instance of
| |
| Resizer | back to summary |
|---|---|
| public Resizer(double scaleX, double scaleY) Creates an instance of
| |
| createScanline | back to summary |
|---|---|
| private static Scanline createScanline(final Object src, Object dst, final int length) | |
| createXWeights | back to summary |
|---|---|
| private Weighttab[] createXWeights(Rectangle srcBounds, final Rectangle dstBounds, final ParameterizedFilter filter) | |
| isInteger | back to summary |
|---|---|
| private static boolean isInteger(final double x) Is x an integer?
| |
| resize | back to summary |
|---|---|
| public void resize(final Object src, final Rectangle srcBounds, final Object dst, Rectangle dstBounds, Filter xFilter, Filter yFilter) | |
| resizeXfirst | back to summary |
|---|---|
| private void resizeXfirst(final Object src, final Rectangle srcBounds, final Object dst, final Rectangle dstBounds, final ParameterizedFilter xFilter, final ParameterizedFilter yFilter) Filtered zoom, x direction filtering before y direction filtering Note when calling | |
| resizeYfirst | back to summary |
|---|---|
| private void resizeYfirst(final Object src, final Rectangle srcBounds, final Object dst, final Rectangle dstBounds, final ParameterizedFilter xFilter, final ParameterizedFilter yFilter) Filtered zoom, y direction filtering before x direction filtering | |
| simplifyFilter | back to summary |
|---|---|
| private ParameterizedFilter simplifyFilter(final ParameterizedFilter filter, final double scale, final double offset) Checks if our discrete sampling of an arbitrary continuous filter, parameterized by the filter spacing
( It reduces if support is less than 1 pixel or if integer scale and translation, and filter is cardinal.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final double | |
| private final double | |
| pack-priv final double | offset
x and y offset used by MAP, private fields |
| pack-priv final double | scale
x and y scales |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv double | |
| pack-priv double | |
| pack-priv double |
| a0 | back to summary |
|---|---|
| private final double a0 | |
| b0 | back to summary |
|---|---|
| private final double b0 | |
| offset | back to summary |
|---|---|
| pack-priv final double offset x and y offset used by MAP, private fields | |
| scale | back to summary |
|---|---|
| pack-priv final double scale x and y scales | |
| Mapping | back to summary |
|---|---|
| pack-priv Mapping(double a0, double aw, double b0, double bw) | |
| Mapping | back to summary |
|---|---|
| pack-priv Mapping(double scaleX) | |
| dstToSrc | back to summary |
|---|---|
| pack-priv double dstToSrc(final double b) | |
| mapPixelCenter | back to summary |
|---|---|
| pack-priv double mapPixelCenter(final int b) | |
| srcToDst | back to summary |
|---|---|
| pack-priv double srcToDst(final double a) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Resizer. | |
| public static final Resizer. | |
| public static final Resizer. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Resizer. | |
| public static Resizer. |
| AUTO | back to summary |
|---|---|
| public static final Resizer. | |
| XY | back to summary |
|---|---|
| public static final Resizer. | |
| YX | back to summary |
|---|---|
| public static final Resizer. | |
| Order | back to summary |
|---|---|
| private Order() | |
| valueOf | back to summary |
|---|---|
| public static Resizer. | |
| values | back to summary |
|---|---|
| public static Resizer. | |