Class ImprovedAveragingScaleFilter
java.lang.Object
java.awt.image.ImageFilter
java.awt.image.ReplicateScaleFilter
java.awt.image.AreaAveragingScaleFilter
VASSAL.tools.ImprovedAveragingScaleFilter
- All Implemented Interfaces:
ImageConsumer
,Cloneable
@Deprecated(since="2020-10-12",
forRemoval=true)
public class ImprovedAveragingScaleFilter
extends AreaAveragingScaleFilter
Deprecated, for removal: This API element is subject to removal in a future version.
Extension of java.awt.image.AreaAveragingScaleFilter. Uses the
same algorithm but makes sure all images are scaled using area
averaging. Ensures there is no fallback to ReplicateScaleFilter.
-
Field Summary
Fields inherited from class java.awt.image.ReplicateScaleFilter
destHeight, destWidth, outpixbuf, srccols, srcHeight, srcrows, srcWidth
Fields inherited from class java.awt.image.ImageFilter
consumer
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
-
Constructor Summary
ConstructorDescriptionImprovedAveragingScaleFilter
(int savedWidth, int savedHeight, int destWidth, int destHeight) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionvoid
imageComplete
(int status) Deprecated, for removal: This API element is subject to removal in a future version.void
setColorModel
(ColorModel model) Deprecated, for removal: This API element is subject to removal in a future version.void
setHints
(int hintflags) Deprecated, for removal: This API element is subject to removal in a future version.void
setPixels
(int x, int y, int width, int height, ColorModel cm, byte[] pixels, int offset, int scansize) Deprecated, for removal: This API element is subject to removal in a future version.void
setPixels
(int x, int y, int width, int height, ColorModel cm, int[] pixels, int offset, int scansize) Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.awt.image.ReplicateScaleFilter
setDimensions, setProperties
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, resendTopDownLeftRight
-
Constructor Details
-
ImprovedAveragingScaleFilter
public ImprovedAveragingScaleFilter(int savedWidth, int savedHeight, int destWidth, int destHeight) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
setColorModel
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setColorModel
in interfaceImageConsumer
- Overrides:
setColorModel
in classImageFilter
-
setHints
public void setHints(int hintflags) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setHints
in interfaceImageConsumer
- Overrides:
setHints
in classAreaAveragingScaleFilter
-
setPixels
public void setPixels(int x, int y, int width, int height, ColorModel cm, byte[] pixels, int offset, int scansize) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setPixels
in interfaceImageConsumer
- Overrides:
setPixels
in classAreaAveragingScaleFilter
-
setPixels
public void setPixels(int x, int y, int width, int height, ColorModel cm, int[] pixels, int offset, int scansize) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
setPixels
in interfaceImageConsumer
- Overrides:
setPixels
in classAreaAveragingScaleFilter
-
imageComplete
public void imageComplete(int status) Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
imageComplete
in interfaceImageConsumer
- Overrides:
imageComplete
in classImageFilter
-