Package VASSAL.tools.image
Class MemoryImageTypeConverter
java.lang.Object
VASSAL.tools.image.MemoryImageTypeConverter
- All Implemented Interfaces:
ImageTypeConverter
Convert a
BufferedImage
to a different type, in memory.- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(Reference<BufferedImage> ref, int type) Converts an image to the given type.
-
Constructor Details
-
MemoryImageTypeConverter
public MemoryImageTypeConverter()
-
-
Method Details
-
convert
Converts an image to the given type.- Specified by:
convert
in interfaceImageTypeConverter
- Parameters:
ref
- a holder for the imagetype
- the type of image to return- Returns:
- a converted image
- Throws:
ImageIOException
- if something goes wrong
-