It is meant to be used in conjunction with a FilteredImageSource object to produce scaled versions of existing images. Due to implementation dependencies, there may be differences in pixel values of an image filtered on different platforms.
FilteredImageSource, ImageFilter
| Modifier and Type | Field and Description |
|---|---|
| protected int | destHeight
The target height to scale the image. |
| protected int | destWidth
The target width to scale the image. |
| protected Object | outpixbuf
A |
| protected int[] | srccols
An |
| protected int | srcHeight
The height of the source image. |
| protected int[] | srcrows
An |
| protected int | srcWidth
The width of the source image. |
| Access | Constructor and Description |
|---|---|
| public | ReplicateScaleFilter(int
the target width to scale the image width, int the target height to scale the image height)Constructs a ReplicateScaleFilter that scales the pixels from its source Image as specified by the width and height parameters. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | setDimensions(int w, int h)
Overrides java. Implements java. Override the dimensions of the source image and pass the dimensions of the new scaled size to the ImageConsumer. |
| public void | setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize)
Overrides java. Implements java. Choose which rows and columns of the delivered byte pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. |
| public void | setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
Overrides java. Implements java. Choose which rows and columns of the delivered int pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. |
| public void | setProperties(Hashtable<?, ?> props)
Overrides java. Implements java. Passes along the properties from the source object after adding a property indicating the scale applied. |
| destHeight | back to summary |
|---|---|
| protected int destHeight The target height to scale the image. | |
| destWidth | back to summary |
|---|---|
| protected int destWidth The target width to scale the image. | |
| outpixbuf | back to summary |
|---|---|
| protected Object outpixbuf A | |
| srccols | back to summary |
|---|---|
| protected int[] srccols An | |
| srcHeight | back to summary |
|---|---|
| protected int srcHeight The height of the source image. | |
| srcrows | back to summary |
|---|---|
| protected int[] srcrows An | |
| srcWidth | back to summary |
|---|---|
| protected int srcWidth The width of the source image. | |
| ReplicateScaleFilter | back to summary |
|---|---|
| public ReplicateScaleFilter(int width, int height) Constructs a ReplicateScaleFilter that scales the pixels from its source Image as specified by the width and height parameters.
| |
| calculateMaps | back to summary |
|---|---|
| private void calculateMaps() | |
| setDimensions | back to summary |
|---|---|
| public void setDimensions(int w, int h) Overrides java. Implements java. Override the dimensions of the source image and pass the dimensions of the new scaled size to the ImageConsumer. Note This method is intended to be called by the
| |
| setPixels | back to summary |
|---|---|
| public void setPixels(int x, int y, int w, int h, ColorModel model, byte[] pixels, int off, int scansize) Overrides java. Implements java. Choose which rows and columns of the delivered byte pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. Note This method is intended to be called by the
| |
| setPixels | back to summary |
|---|---|
| public void setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize) Overrides java. Implements java. Choose which rows and columns of the delivered int pixels are needed for the destination scaled image and pass through just those rows and columns that are needed, replicated as necessary. Note This method is intended to be called by the
| |
| setProperties | back to summary |
|---|---|
| public void setProperties(Hashtable<?, ?> props) Overrides java. Implements java. Passes along the properties from the source object after adding a
property indicating the scale applied.
This method invokes Note This method is intended to be called by the
| |