public static enum GMOperation.GeometryAnnotation extends Enum<GMOperation.GeometryAnnotation>
Enum Constant and Description |
---|
DimensionsAsPercentages
Treat width and height declarations as percentage values instead of pixel lengths.
|
DownsizeOnly
Resize the image only if its width or height exceeds the geometry specification.
|
FillUsingAspectRatio
Resize the image while maintaining the aspect ratio using the geometry specification as minimum values.
|
FitUsingAspectRatio
Resize the image while maintaining the aspect ratio using the geometry specification as maximum values.
|
ForceDimensions
Resize of the image to exactly match the geometry specification.
|
UpsizeOnly
Resize the image only if both width and height are less than the geometry specification.
|
Modifier and Type | Method and Description |
---|---|
String |
asAnnotation()
Serializes option for GraphicsMagick command-line.
|
static GMOperation.GeometryAnnotation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GMOperation.GeometryAnnotation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GMOperation.GeometryAnnotation FillUsingAspectRatio
public static final GMOperation.GeometryAnnotation FitUsingAspectRatio
public static final GMOperation.GeometryAnnotation ForceDimensions
public static final GMOperation.GeometryAnnotation DimensionsAsPercentages
public static final GMOperation.GeometryAnnotation DownsizeOnly
public static final GMOperation.GeometryAnnotation UpsizeOnly
public static GMOperation.GeometryAnnotation[] values()
for (GMOperation.GeometryAnnotation c : GMOperation.GeometryAnnotation.values()) System.out.println(c);
public static GMOperation.GeometryAnnotation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic String asAnnotation()
Copyright © 2013. All Rights Reserved.