İngilizce dilinde oku

Aracılığıyla paylaş


ImageScaleMode Class

public final class ImageScaleMode
extends ExpandableStringEnum<ImageScaleMode>

Defines values for ImageScaleMode.

Field Summary

Modifier and Type Field and Description
static final ImageScaleMode PAD

Static value pad for ImageScaleMode.

static final ImageScaleMode PRESERVE_ASPECT_RATIO

Static value preserveAspectRatio for ImageScaleMode.

static final ImageScaleMode STRETCH

Static value stretch for ImageScaleMode.

Constructor Summary

Constructor Description
ImageScaleMode()

Method Summary

Modifier and Type Method and Description
static ImageScaleMode fromString(String name)

Creates or finds a ImageScaleMode from its string representation.

static Collection<ImageScaleMode> values()

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

PAD

public static final ImageScaleMode PAD

Static value pad for ImageScaleMode.

PRESERVE_ASPECT_RATIO

public static final ImageScaleMode PRESERVE_ASPECT_RATIO

Static value preserveAspectRatio for ImageScaleMode.

STRETCH

public static final ImageScaleMode STRETCH

Static value stretch for ImageScaleMode.

Constructor Details

ImageScaleMode

public ImageScaleMode()

Method Details

fromString

public static ImageScaleMode fromString(String name)

Creates or finds a ImageScaleMode from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ImageScaleMode.

values

public static Collection values()

Returns:

known ImageScaleMode values.

Applies to

Azure SDK for Java

Legacy