ImageConsumer
, Cloneable
public class SubsamplingFilter extends ReplicateScaleFilter
ImageFilter
class for subsampling images.
It is meant to be used in conjunction with a FilteredImageSource
object to produce subsampled versions of existing images.FilteredImageSource
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
consumer
destHeight, destWidth, outpixbuf, srccols, srcHeight, srcrows, srcWidth
Constructor | Description |
---|---|
SubsamplingFilter(int pXSub,
int pYSub) |
Creates a
SubsamplingFilter . |
Modifier and Type | Method | Description |
---|---|---|
void |
setDimensions(int pWidth,
int pHeight) |
ImageFilter implementation, do not invoke. |
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setColorModel, setHints
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPixels, setPixels, setProperties
public SubsamplingFilter(int pXSub, int pYSub)
SubsamplingFilter
.pXSub
- pYSub
- IllegalArgumentException
- if pXSub
or pYSub
is
less than 1.public void setDimensions(int pWidth, int pHeight)
ImageFilter
implementation, do not invoke.setDimensions
in interface ImageConsumer
setDimensions
in class ReplicateScaleFilter
Copyright © 2018. All rights reserved.