Package gov.nih.mipav.model.algorithms
Class ContourPlot.BufferedImageFactory
java.lang.Object
gov.nih.mipav.model.algorithms.ContourPlot.BufferedImageFactory
- Enclosing class:
ContourPlot
Class providing convenience methods for converting Images to BufferedImages.
- Since:
- 1.0
- Author:
- hageldave
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedImageCreates a new BufferedImage of the specified imgType and same size as the provided image and draws the provided Image onto the new BufferedImage.static BufferedImagegetINT_ARGB(int width, int height) Instancing method for BufferedImage of typeBufferedImage.TYPE_INT_ARGBstatic BufferedImageInstancing method for BufferedImage of typeBufferedImage.TYPE_INT_ARGBstatic BufferedImagegetINT_ARGB(Image img) shortcut for get(img, BufferedImage.TYPE_INT_ARGB).
-
Constructor Details
-
BufferedImageFactory
private BufferedImageFactory()
-
-
Method Details
-
getINT_ARGB
shortcut for get(img, BufferedImage.TYPE_INT_ARGB).- Parameters:
img- to be copied to BufferedImage of type INT_ARGB- Returns:
- a BufferedImage copy of the provided Image
- Since:
- 1.0
-
get
Creates a new BufferedImage of the specified imgType and same size as the provided image and draws the provided Image onto the new BufferedImage.- Parameters:
img- to be copied to BufferedImageimgType- of the BufferedImage. SeeBufferedImage(int, int, int)for details on the available imgTypes.- Returns:
- a BufferedImage copy of the provided Image
- Since:
- 1.0
-
getINT_ARGB
Instancing method for BufferedImage of typeBufferedImage.TYPE_INT_ARGB- Parameters:
d- dimension of the created BufferedImage- Returns:
- a new BufferedImage of specified dimension and type TYPE_INT_ARGB
- Since:
- 1.0
-
getINT_ARGB
Instancing method for BufferedImage of typeBufferedImage.TYPE_INT_ARGB- Parameters:
width- of the created BufferedImageheight- of the created BufferedImage- Returns:
- a new BufferedImage of specified dimension and type TYPE_INT_ARGB
- Since:
- 1.0
-