Package org.anchoranalysis.image.io
Class ImageInitializationFactory
Object
ImageInitializationFactory
Creates instances of
ImageInitialization
based upon an InputOutputContext
.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageInitialization
create
(InputOutputContext context) Create from anInputOutputContext
- without any suggested size.static ImageInitialization
create
(InputOutputContext context, Optional<ImageSizeSuggestion> suggestedSize) Create from anInputOutputContext
- with a suggested size.
-
Method Details
-
create
Create from anInputOutputContext
- without any suggested size.- Parameters:
context
- the context.- Returns:
- a newly created
ImageInitialization
based uponcontext
.
-
create
public static ImageInitialization create(InputOutputContext context, Optional<ImageSizeSuggestion> suggestedSize) Create from anInputOutputContext
- with a suggested size.- Parameters:
context
- the context.suggestedSize
- a suggested input on how to resize an image, if one is provided.- Returns:
- a newly created
ImageInitialization
based uponcontext
.
-