FilteredImageSource, ImageFilter
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public | CropImageFilter(int
the x location of the top of the rectangle to be extracted x, int the y location of the top of the rectangle to be extracted y, int the width of the rectangle to be extracted w, int the height of the rectangle to be extracted h)Constructs a CropImageFilter that extracts the absolute rectangular region of pixels from its source Image as specified by the x, y, w, and h parameters. |
| Modifier and Type | Method and Description |
|---|---|
| private int | |
| public void | setDimensions(int w, int h)
Overrides java. Implements java. Override the source image's dimensions and pass the dimensions of the rectangular cropped region 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. Determine whether the delivered byte pixels intersect the region to be extracted and passes through only that subset of pixels that appear in the output region. |
| public void | setPixels(int x, int y, int w, int h, ColorModel model, int[] pixels, int off, int scansize)
Overrides java. Implements java. Determine if the delivered int pixels intersect the region to be extracted and pass through only that subset of pixels that appear in the output region. |
| public void | setProperties(Hashtable<?, ?> props)
Overrides java. Implements java. Passes along the properties from the source object after adding a property indicating the cropped region. |
| cropH | back to summary |
|---|---|
| pack-priv int cropH | |
| cropW | back to summary |
|---|---|
| pack-priv int cropW | |
| cropX | back to summary |
|---|---|
| pack-priv int cropX | |
| cropY | back to summary |
|---|---|
| pack-priv int cropY | |
| CropImageFilter | back to summary |
|---|---|
| public CropImageFilter(int x, int y, int w, int h) Constructs a CropImageFilter that extracts the absolute rectangular region of pixels from its source Image as specified by the x, y, w, and h parameters.
| |
| addWithoutOverflow | back to summary |
|---|---|
| private int addWithoutOverflow(int x, int w) | |
| setDimensions | back to summary |
|---|---|
| public void setDimensions(int w, int h) Overrides java. Implements java. Override the source image's dimensions and pass the dimensions of the rectangular cropped region 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. Determine whether the delivered byte pixels intersect the region to be extracted and passes through only that subset of pixels that appear in the output region. 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. Determine if the delivered int pixels intersect the region to be extracted and pass through only that subset of pixels that appear in the output region. 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 cropped region.
This method invokes Note This method is intended to be called by the
| |