AnnResizeMode Enumeration (original) (raw)
Summary
Determines how to resize the container in the new dimension values.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public enum AnnResizeMode
typedef NS_ENUM(NSInteger, LTAnnResizeMode) {
LTAnnResizeModeFit = 0,
LTAnnResizeModeFitAlways = 1,
LTAnnResizeModeFitWidth = 2,
LTAnnResizeModeFitHeight = 3,
LTAnnResizeModeStretch = 4,
};
public enum AnnResizeMode
public:
enum class AnnResizeMode sealed
class AnnResizeMode(Enum):
Fit = 0
FitAlways = 1
FitWidth = 2
FitHeight = 3
Stretch = 4
Members
Value | Member | Description |
---|---|---|
0 | Fit | Fit the container into the destination size while maintaining the aspect ratio. If the container size is smaller than the destination size, do not perform resizing. |
1 | FitAlways | Always fit the container into the destination size while maintaining the aspect ratio, even if the container size is smaller than the destination size. |
2 | FitWidth | Adjust the container width so it has the same value as the destination size, while maintaining the aspect ratio |
3 | FitHeight | Adjust the container height so it has the same value as the destination size, while maintaining the aspect ratio |
4 | Stretch | Adjust the container so it has the same exact size as the destination size. Aspect ratio may not be maintained |