public class AdaptiveImageHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AdaptiveImageHelper.Quality
Defines values for a number of common qualities.
|
Constructor and Description |
---|
AdaptiveImageHelper() |
Modifier and Type | Method and Description |
---|---|
Layer |
applyStyleDataToImage(Image image,
Style style)
Applies style data to the given image, including crop and rotation.
|
static AdaptiveImageHelper.Quality |
getQualityFromString(String imageQualityString)
Lookup Quality value from a String.
|
static Layer |
renderScaledPlaceholderImage(int width,
int height)
Renders a white rectangular layer with the given dimensions.
|
Layer |
scaleThisImage(Image image,
int newWidth,
int newHeight,
Style style)
Scales the given image to the dimensions specified by newWidth and newHeight.
|
public static AdaptiveImageHelper.Quality getQualityFromString(String imageQualityString)
imageQualityString
- public Layer scaleThisImage(Image image, int newWidth, int newHeight, Style style) throws RepositoryException, IOException
image
- newWidth
- newHeight
- specify 0 to scale based on width and keep the current aspect ratiostyle
- style data including user defined crop and rotationRepositoryException
IOException
public Layer applyStyleDataToImage(Image image, Style style) throws RepositoryException, IOException
image
- style
- RepositoryException
IOException
public static Layer renderScaledPlaceholderImage(int width, int height)
width
- height
- "Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"