Leadtools.Annotations.Core.AnnResizeMode = function() { };
Leadtools.Annotations.Core.AnnResizeMode.prototype = {
fit = 0,
fitAlways = 1,
fitWidth = 2,
fitHeight = 3,
stretch = 4,
};
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 resize. |
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 | Fit the container width so it has the same value as the destination size, and maintain the aspect ratio. |
3 | fitHeight | Fit the container height so it has the same value as the destination size, and maintain the aspect ratio. |
4 | stretch | Fit the container so it is the same exact size as the destination size. Aspect ratio can change. |