Sdílet prostřednictvím


ImageSize Class

  • java.lang.Object
    • com.microsoft.rest.ExpandableStringEnum<ImageSize>
      • com.microsoft.azure.cognitiveservices.search.customimagesearch.models.ImageSize

public class ImageSize

Defines values for ImageSize.

Field Summary

Modifier and Type Field and Description
final ImageSize ALL

Static value All for ImageSize.

final ImageSize LARGE

Static value Large for ImageSize.

final ImageSize MEDIUM

Static value Medium for ImageSize.

final ImageSize SMALL

Static value Small for ImageSize.

final ImageSize WALLPAPER

Static value Wallpaper for ImageSize.

Method Summary

Modifier and Type Method and Description
ImageSize fromString(String name)

Creates or finds a ImageSize from its string representation.

Collection<ImageSize> values()

Field Details

ALL

public static final ImageSize ALL= fromString("All")

Static value All for ImageSize.

LARGE

public static final ImageSize LARGE= fromString("Large")

Static value Large for ImageSize.

MEDIUM

public static final ImageSize MEDIUM= fromString("Medium")

Static value Medium for ImageSize.

SMALL

public static final ImageSize SMALL= fromString("Small")

Static value Small for ImageSize.

WALLPAPER

public static final ImageSize WALLPAPER= fromString("Wallpaper")

Static value Wallpaper for ImageSize.

Method Details

fromString

public static ImageSize fromString(String name)

Creates or finds a ImageSize from its string representation.

Parameters:

name - a name to look for

Returns:

the corresponding ImageSize

values

public static Collection values()

Returns:

known ImageSize values

Applies to