-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
816 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace SharpEmf.Enums; | ||
|
||
/// <summary> | ||
/// Used to specify the background mode to be used with text, hatched brushes, and pen styles that are not solid. | ||
/// The background mode determines how to combine the background with foreground text, hatched brushes, and pen styles that are not solid lines | ||
/// </summary> | ||
[PublicAPI] | ||
public enum BackgroundMode : uint | ||
{ | ||
/// <summary> | ||
/// Background remains untouched | ||
/// </summary> | ||
TRANSPARENT = 0x0001, | ||
|
||
/// <summary> | ||
/// Background is filled with the current background color before the text, hatched brush, or pen is drawn | ||
/// </summary> | ||
OPAQUE = 0x0002 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace SharpEmf.Enums; | ||
|
||
/// <summary> | ||
/// Used to define the unit of measure for transforming page space units into device space units and for defining the orientation of the drawing axes | ||
/// </summary> | ||
[PublicAPI] | ||
public enum MapMode : uint | ||
{ | ||
/// <summary> | ||
/// Each logical unit is mapped to one device pixel. Positive x is to the right; positive y is down | ||
/// </summary> | ||
MM_TEXT = 0x01, | ||
/// <summary> | ||
/// Each logical unit is mapped to 0.1 millimeter. Positive x is to the right; positive y is up | ||
/// </summary> | ||
MM_LOMETRIC = 0x02, | ||
/// <summary> | ||
/// Each logical unit is mapped to 0.01 millimeter. Positive x is to the right; positive y is up | ||
/// </summary> | ||
MM_HIMETRIC = 0x03, | ||
/// <summary> | ||
/// Each logical unit is mapped to 0.01 inch. Positive x is to the right; positive y is up | ||
/// </summary> | ||
MM_LOENGLISH = 0x04, | ||
/// <summary> | ||
///Each logical unit is mapped to 0.001 inch. Positive x is to the right; positive y is up | ||
/// </summary> | ||
MM_HIENGLISH = 0x05, | ||
/// <summary> | ||
/// Each logical unit is mapped to one-twentieth of a printer's point (1/1440 inch, also called a "twip"). Positive x is to the right; positive y is up | ||
/// </summary> | ||
MM_TWIPS = 0x06, | ||
/// <summary> | ||
/// Logical units are isotropic; that is, they are mapped to arbitrary units with equally scaled axes. | ||
/// Thus, one unit along the x-axis is equal to one unit along the y-axis | ||
/// </summary> | ||
MM_ISOTROPIC = 0x07, | ||
/// <summary> | ||
/// Logical units are anisotropic; that is, they are mapped to arbitrary units with arbitrarily scaled axes | ||
/// </summary> | ||
MM_ANISOTROPIC = 0x08 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace SharpEmf.Enums; | ||
|
||
/// <summary> | ||
/// Defines modes for changing the world-space to page-space transform that is currently defined in the playback device context | ||
/// </summary> | ||
[PublicAPI] | ||
public enum ModifyWorldTransformMode : uint | ||
{ | ||
/// <summary> | ||
/// Reset the current transform using the identity matrix. In this mode, the specified transform data is ignored | ||
/// </summary> | ||
MWT_IDENTITY = 0x01, | ||
|
||
/// <summary> | ||
/// Multiply the current transform. In this mode, the specified transform data is the left multiplicand, and the current transform is the right multiplicand | ||
/// </summary> | ||
MWT_LEFTMULTIPLY = 0x02, | ||
|
||
/// <summary> | ||
/// Multiply the current transform. In this mode, the specified transform data is the right multiplicand, and the current transform is the left multiplicand | ||
/// </summary> | ||
MWT_RIGHTMULTIPLY = 0x03, | ||
|
||
/// <summary> | ||
/// Set the current transform to the specified transform data | ||
/// </summary> | ||
MWT_SET = 0x04 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
using JetBrains.Annotations; | ||
|
||
namespace SharpEmf.Enums; | ||
|
||
/// <summary> | ||
/// Defines the attributes of pens that can be used in graphics operations. | ||
/// A pen style is a combination of pen type, line style, line cap, and line join | ||
/// </summary> | ||
[PublicAPI] | ||
public enum PenStyle : uint | ||
{ | ||
/// <summary> | ||
/// A pen type that specifies a line with a width of one logical unit and a style that is a solid color | ||
/// </summary> | ||
PS_COSMETIC = 0x00000000, | ||
|
||
/// <summary> | ||
/// A line cap that specifies round ends | ||
/// </summary> | ||
PS_ENDCAP_ROUND = 0x00000000, | ||
|
||
/// <summary> | ||
/// A line join that specifies round joins | ||
/// </summary> | ||
PS_JOIN_ROUND = 0x00000000, | ||
|
||
/// <summary> | ||
/// A line style that is a solid color | ||
/// </summary> | ||
PS_SOLID = 0x00000000, | ||
|
||
/// <summary> | ||
/// A line style that is dashed | ||
/// </summary> | ||
PS_DASH = 0x00000001, | ||
|
||
/// <summary> | ||
/// A line style that is dotted | ||
/// </summary> | ||
PS_DOT = 0x00000002, | ||
|
||
/// <summary> | ||
/// A line style that consists of alternating dashes and dots | ||
/// </summary> | ||
PS_DASHDOT = 0x00000003, | ||
|
||
/// <summary> | ||
/// A line style that consists of dashes and double dots | ||
/// </summary> | ||
PS_DASHDOTDOT = 0x00000004, | ||
|
||
/// <summary> | ||
/// A line style that is invisible | ||
/// </summary> | ||
PS_NULL = 0x00000005, | ||
|
||
/// <summary> | ||
/// A line style that is a solid color | ||
/// </summary> | ||
/// <remarks> | ||
/// When this style is specified in a drawing record that takes a bounding rectangle, | ||
/// the dimensions of the figure are shrunk so that it fits entirely in the bounding rectangle, considering the width of the pen | ||
/// </remarks> | ||
PS_INSIDEFRAME = 0x00000006, | ||
|
||
/// <summary> | ||
/// A line style that is defined by a styling array, which specifies the lengths of dashes and gaps in the line | ||
/// </summary> | ||
PS_USERSTYLE = 0x00000007, | ||
|
||
/// <summary> | ||
/// A line style in which every other pixel is set. This style is applicable only to a pen type of <see cref="PS_COSMETIC"/> | ||
/// </summary> | ||
PS_ALTERNATE = 0x00000008, | ||
|
||
/// <summary> | ||
/// A line cap that specifies square ends | ||
/// </summary> | ||
PS_ENDCAP_SQUARE = 0x00000100, | ||
|
||
/// <summary> | ||
/// A line cap that specifies flat ends | ||
/// </summary> | ||
PS_ENDCAP_FLAT = 0x00000200, | ||
|
||
/// <summary> | ||
/// A line join that specifies beveled joins | ||
/// </summary> | ||
PS_JOIN_BEVEL = 0x00001000, | ||
|
||
// TODO: add cref | ||
/// <summary> | ||
/// A line join that specifies mitered joins when the lengths of the joins are within the current miter length limit. | ||
/// If the lengths of the joins exceed the miter limit, beveled joins are specified | ||
/// </summary> | ||
/// <remarks> | ||
/// The miter length limit is a metafile state property that is set by the EMR_SETMITERLIMIT record | ||
/// </remarks> | ||
PS_JOIN_MITER = 0x00002000, | ||
|
||
/// <summary> | ||
/// A pen type that specifies a line with a width that is measured in logical units and a style that can contain any of the attributes of a brush | ||
/// </summary> | ||
PS_GEOMETRIC = 0x00010000 | ||
} |
Oops, something went wrong.