Enum StreamCdnCropImageMode
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum StreamCdnCropImageMode extends Enum<StreamCdnCropImageMode>
Sets the cropping strategy when added as the 'crop' query parameter to a Stream CDN hosted image URL. The default crop mode when resizing is StreamCdnCropImageMode.CENTER.
note: Used when the resize strategy is set to StreamCdnResizeImageMode.CROP.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringqueryParameterNameprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<StreamCdnCropImageMode>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description TOPKeeps the top area of the image and crops out the rest.
BOTTOMKeeps the bottom area of the image and crops out the rest.
RIGHTKeeps the right area of the image and crops out the rest.
LEFTKeeps the left area of the image and crops out the rest.
CENTERKeeps the center area of the image and crops out the rest.
-
Method Summary
Modifier and Type Method Description final StreamCdnCropImageModevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<StreamCdnCropImageMode>values()Returns an array containing the constants of this enum type, in the order they're declared. final StringgetQueryParameterName()final EnumEntries<StreamCdnCropImageMode>getEntries()Sets the cropping strategy when added as the 'crop' query parameter to a Stream CDN hosted image URL. -
-
Method Detail
-
valueOf
final StreamCdnCropImageMode valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Parameters:
value- The value used to form a query parameter.
-
values
final Array<StreamCdnCropImageMode> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getQueryParameterName
final String getQueryParameterName()
-
getEntries
final EnumEntries<StreamCdnCropImageMode> getEntries()
Sets the cropping strategy when added as the 'crop' query parameter to a Stream CDN hosted image URL. The default crop mode when resizing is StreamCdnCropImageMode.CENTER.
note: Used when the resize strategy is set to StreamCdnResizeImageMode.CROP.
-
-
-
-