Enum StreamCdnResizeImageMode
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum StreamCdnResizeImageMode extends Enum<StreamCdnResizeImageMode>
Sets the resizing mode when added as the 'resize' query parameter to a Stream CDN hosted image URL. The default CDN resizing mode is CLIP.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringqueryParameterNameprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<StreamCdnResizeImageMode>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description CLIPMake the image as large as possible, while maintaining the aspect ratio and keeping the height and width less than or equal to the given height and width.
CROPCrop the image to the given dimensions. Use StreamCdnCropImageMode to give focus to a specific portion of the image.
FILLMake the image as large as possible, while maintaining the aspect ratio and keeping the height and width less than or equal to the given height and width. Fill any leftover space with a black background.
SCALEIgnore the aspect ratio, and resize the image to the given height and width.
-
Method Summary
Modifier and Type Method Description final StreamCdnResizeImageModevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<StreamCdnResizeImageMode>values()Returns an array containing the constants of this enum type, in the order they're declared. final StringgetQueryParameterName()final EnumEntries<StreamCdnResizeImageMode>getEntries()Sets the resizing mode when added as the 'resize' query parameter to a Stream CDN hosted image URL. -
-
Method Detail
-
valueOf
final StreamCdnResizeImageMode 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<StreamCdnResizeImageMode> 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<StreamCdnResizeImageMode> getEntries()
Sets the resizing mode when added as the 'resize' query parameter to a Stream CDN hosted image URL. The default CDN resizing mode is CLIP.
-
-
-
-