Package | Description |
---|---|
com.contentful.java.cda | |
com.contentful.java.cda.image |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
CDAAsset.urlForImageWith(ImageOption... options)
Returns a url with the given image manipulation.
|
Modifier and Type | Method and Description |
---|---|
static ImageOption |
ImageOption.backgroundColorOf(int color)
Define a background color.
|
static ImageOption |
ImageOption.backgroundColorOf(int r,
int g,
int b)
Define a background color by its components.
|
static ImageOption |
ImageOption.blackBackgroundColor()
Define a background color as black.
|
static ImageOption |
ImageOption.fitOf(ImageOption.Resize resize)
Change the behaviour of resizing.
|
static ImageOption |
ImageOption.focusOn(ImageOption.Focus focus)
Changes the focus area when using the fit type of
ImageOption.Resize.thumb . |
static ImageOption |
ImageOption.formatOf(ImageOption.Format format)
Retrieve image of specific image format.
|
static ImageOption |
ImageOption.heightOf(int height)
Set the height of the output image.
|
static ImageOption |
ImageOption.http()
Prefix image urls with http.
|
static ImageOption |
ImageOption.https()
Prefix image urls with secure http.
|
static ImageOption |
ImageOption.jpegQualityOf(int quality)
Define the quality of the jpg image to be returned.
|
static ImageOption |
ImageOption.roundedCornerRadiusOf(float radius)
Cut corners round.
|
static ImageOption |
ImageOption.widthOf(int width)
Define the width of the image to be represented.
|
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.