Package VASSAL.tools.image
Interface ImageTypeConverter
- All Known Implementing Classes:
FallbackImageTypeConverter
,FileImageTypeConverter
,MemoryImageTypeConverter
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An interface for converting
BufferedImage
s from one type to
another.- Since:
- 3.2.0
- Author:
- Joel Uckelman
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(Reference<BufferedImage> ref, int type) Converts an image to the given type.
-
Method Details
-
convert
Converts an image to the given type.- Parameters:
ref
- a holder for the imagetype
- the type of image to return- Returns:
- a converted image
- Throws:
ImageIOException
- if something goes wrong
-