Skip to content

Commit 357a8d8

Browse files
committed
Improve parsing of a geometry in the MagickGeometry class (#1855)
1 parent d38eca8 commit 357a8d8

3 files changed

Lines changed: 196 additions & 104 deletions

File tree

src/Magick.NET/Enums/GeometryFlags.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ namespace ImageMagick;
66
internal enum GeometryFlags
77
{
88
NoValue = 0,
9-
PercentValue = 0x1000, /* '%' percentage of something */
9+
X = 0x0001,
10+
Y = 0x0002,
11+
Width = 0x0004,
12+
Height = 0x0008,
13+
Percentage = 0x1000, /* '%' percentage of something */
1014
IgnoreAspectRatio = 0x2000, /* '!' resize no-aspect - special use flag */
1115
Less = 0x4000, /* '<' resize smaller - special use flag */
1216
Greater = 0x8000, /* '>' resize larger - spacial use flag */
1317
FillArea = 0x10000, /* '^' special handling needed */
1418
LimitPixels = 0x20000, /* '@' resize to area - special use flag */
1519
AspectRatio = 0x100000, /* '~' special handling needed */
20+
WidthHeight = Width | Height,
21+
XYWidthHeight = X | Y | Width | Height,
1622
}

0 commit comments

Comments
 (0)