Class BufferedImageFactory
- java.lang.Object
 - 
- science.aist.imaging.api.domain.wrapper.implementation.BufferedImageFactory
 
 
- 
- All Implemented Interfaces:
 ImageFactory<BufferedImage>
public class BufferedImageFactory extends Object implements ImageFactory<BufferedImage>
Implements the
ImageFactoryinterface forBufferedImage- Since:
 - 1.0
 - Author:
 - Christoph Praschl
 
 
- 
- 
Constructor Summary
Constructors Constructor Description BufferedImageFactory()Do not instantiate this class directly. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<BufferedImage>getImage(int height, int width, ChannelType channel)Creates a image with the given height, width and channeltypeImageWrapper<BufferedImage>getImage(int height, int width, ChannelType channel, BufferedImage image)PrefergetImage(BufferedImage)since height, width and channeltype are not used since this information is provided by the image itselfImageWrapper<BufferedImage>getImage(BufferedImage image)Creates an imagewrapper of the given buffered imageClass<BufferedImage>getSupportedType()- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface science.aist.imaging.api.domain.wrapper.ImageFactory
getImage, getImage, getImage, getImage, getRandomImage 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
BufferedImageFactory
public BufferedImageFactory()
Do not instantiate this class directly. This constructor is only need, to work withServiceLoader. Get yourself an instance usingImageFactoryFactory.getImageFactory(Class)method. Usingclass = BufferedImage.classfor this specific factory. 
 - 
 
- 
Method Detail
- 
getImage
public ImageWrapper<BufferedImage> getImage(int height, int width, ChannelType channel)
Description copied from interface:ImageFactoryCreates a image with the given height, width and channeltype- Specified by:
 getImagein interfaceImageFactory<BufferedImage>- Parameters:
 height- height of the imagewidth- width of the imagechannel- channeltype of the image- Returns:
 - image with the given properties
 
 
- 
getImage
public ImageWrapper<BufferedImage> getImage(int height, int width, ChannelType channel, BufferedImage image)
PrefergetImage(BufferedImage)since height, width and channeltype are not used since this information is provided by the image itself- Specified by:
 getImagein interfaceImageFactory<BufferedImage>- Parameters:
 height- not usedwidth- not usedchannel- not usedimage- the data which should be encapsulated in the image- Returns:
 - wrapped image
 
 
- 
getImage
public ImageWrapper<BufferedImage> getImage(BufferedImage image)
Creates an imagewrapper of the given buffered image- Specified by:
 getImagein interfaceImageFactory<BufferedImage>- Parameters:
 image- image to be wrapped- Returns:
 - wrapped image
 
 
- 
getSupportedType
public Class<BufferedImage> getSupportedType()
- Specified by:
 getSupportedTypein interfaceImageFactory<BufferedImage>- Returns:
 - the supported image type.
 
 
 - 
 
 -