System.Private.Windows.GdiPlus
Enumeration defining the different Graphics properties to apply to an when creating it
from a Graphics object.
Apply clipping region.
Apply coordinate transformation.
Apply all supported Graphics properties.
Get the encoder guid for the given image format guid.
Used to provide a way to give direct internal access to HDC's.
If this flag is true we expect that the object obtained through
should not have a clip or GpMatrix
applied and therefore it is safe to skip getting them.
If a object hasn't been created it, by definition, will be clean when it is
created, so this will return true.
Gets the , if the object was created from one.
Get the object.
If true, this will pass back a object, creating a new one *if* needed.
If false, will pass back a object *if* one exists, otherwise returns null.
Do not dispose of the returned object.
A Graphics object cannot be created from an image that has an indexed pixel format.
SetPixel is not supported for images with indexed pixel formats.
Destination points define a parallelogram which must have a length of 3. These points will represent the upper-left, upper-right, and lower-left coordinates (defined in that order).
Destination points must be an array with a length of 3 or 4. A length of 3 defines a parallelogram with the upper-left, upper-right, and lower-left corners. A length of 4 defines a quadrilateral with the fourth element of the array specifying the lower-rig ...
Rectangle '{0}' cannot have a width or height equal to 0.
Operation requires a transformation of the image from GDI+ to GDI. GDI does not support images with a width or height greater than 32767.
Only TrueType fonts are supported. '{0}' is not a TrueType font.
System.Drawing.Common is not supported on non-Windows platforms. See https://aka.ms/systemdrawingnonwindows for more information.
Computes the amount of memory that must be allocated to store this struct, including the specified number of elements in the variable length inline array at the end.
Creates a structure from the specified .
Create a struct describing the given .
The image type isn't supported.
Creates a structure from the specified .
Creates a native region from a GDI+ and .
Creates a native region from a GDI+ and .
Specifies that pixel data contains color indexed values which means they are an index to colors in the
system color table, as opposed to individual color values.
Specifies that pixel data contains GDI colors.
Specifies that pixel data contains alpha values that are not pre-multiplied.
Specifies that pixel format contains pre-multiplied alpha values.
Specifies that pixel format contains extended color values of 16 bits per channel.
Specifies that pixel format is undefined.
Specifies that pixel format doesn't matter.
Specifies that pixel format is 1 bit per pixel indexed color. The color table therefore has two colors in it.
Specifies that pixel format is 4 bits per pixel indexed color. The color table therefore has 16 colors in it.
Specifies that pixel format is 8 bits per pixel indexed color. The color table therefore has 256 colors in it.
Specifies that pixel format is 16 bits per pixel. The color information specifies 65536 shades of gray.
Specifies that pixel format is 16 bits per pixel. The color information specifies 32768 shades of color of
which 5 bits are red, 5 bits are green and 5 bits are blue.
Specifies that pixel format is 16 bits per pixel. The color information specifies 32768 shades of color of
which 5 bits are red, 5 bits are green, 5 bits are blue and 1 bit is alpha.
Specifies that pixel format is 24 bits per pixel. The color information specifies 16777216 shades of color
of which 8 bits are red, 8 bits are green and 8 bits are blue.
Specifies that pixel format is 24 bits per pixel. The color information specifies 16777216 shades of color
of which 8 bits are red, 8 bits are green and 8 bits are blue.
Specifies that pixel format is 32 bits per pixel. The color information specifies 16777216 shades of color
of which 8 bits are red, 8 bits are green and 8 bits are blue. The 8 additional bits are alpha bits.
Specifies that pixel format is 32 bits per pixel. The color information specifies 16777216 shades of color
of which 8 bits are red, 8 bits are green and 8 bits are blue. The 8 additional bits are pre-multiplied alpha bits.
Specifies that pixel format is 48 bits per pixel. The color information specifies 16777216 shades of color
of which 8 bits are red, 8 bits are green and 8 bits are blue. The 8 additional bits are alpha bits.
Specifies pixel format is 64 bits per pixel. The color information specifies 16777216 shades of color of
which 16 bits are red, 16 bits are green and 16 bits are blue. The 16 additional bits are alpha bits.
Specifies that pixel format is 64 bits per pixel. The color information specifies 16777216 shades of color
of which 16 bits are red, 16 bits are green and 16 bits are blue. The 16 additional bits are pre-multiplied
alpha bits.
Specifies that pixel format is 64 bits per pixel. The color information specifies 16777216 shades of color
of which 16 bits are red, 16 bits are green and 16 bits are blue. The 16 additional bits are alpha bits.
Contains a set of four floating-point numbers that represent the location and size of a rectangle.
Learn more about this API from docs.microsoft.com.
Creates a D2D1_RECT_F structure that contains the specified dimensions.
Type: D2D1_RECT_F A rectangle structure that contains the specified dimensions.
Learn more about this API from docs.microsoft.com.
Note This section describes functionality designed for use by online stores. | Color Element
The default value for **MediaPlayer** is \#7C9AD6. The default value for **MediaPlayerText** is \#FFFFFF. Be sure to use colors that make it easy for the user to read the button text. For example, you should avoid using white button text on light colored buttons.
Read more on docs.microsoft.com.
Computes the amount of memory that must be allocated to store this struct, including the specified number of elements in the variable length inline array at the end.
Defines the type that contains the binary information for an image in a Journal note.
Learn more about this API from docs.microsoft.com.
A matrix is a special data type that contains between one and sixteen components. Every component of a matrix must be of the same type.
Learn more about this API from docs.microsoft.com.
Represents an ordered pair of floating-point x- and y-coordinates that defines a point in a two-dimensional plane.
Learn more about this API from docs.microsoft.com.
Helper to scope getting a from a object. Releases
the when disposed, unlocking the parent object.
Also saves and restores the state of the HDC.
Use in a statement. If you must pass this around, always pass by+
to avoid duplicating the handle and risking a double release.
Gets the from the given .
When a object is created from a the clipping region and
the viewport origin are applied (). The clipping
region isn't reflected in , which is combined with the HDC HRegion.
The Graphics object saves and restores DC state when performing operations that would modify the DC to
maintain the DC in its original or returned state after .
Applies the origin transform and clipping region of the if it is an
object of type . Otherwise this is a no-op.
When true, saves and restores the state.
Prefer to use .
Ideally we'd not bifurcate what properties we apply unless we're absolutely sure we only want one.
Uses the GDI+ halftone palette for the given if the color depth is 8 bpp or less.
The METAHEADER structure contains information about a Windows-format metafile.
Learn more about this API from docs.microsoft.com.
The size, in words, of the metafile header.
The system version number. The version number for metafiles that support device-independent bitmaps (DIBs) is 0x0300. Otherwise, the version number is 0x0100.
The size, in words, of the file.
The maximum number of objects that exist in the metafile at the same time.
The size, in words, of the largest record in the metafile.
Reserved.
Contains extern methods from "gdiplus.dll".
The length of the inline array.
Gets a ref to an individual element of the inline array.
⚠ Important ⚠: When this struct is on the stack, do not let the returned reference outlive the stack frame that defines it.
Gets this inline array as a span.
⚠ Important ⚠: When this struct is on the stack, do not let the returned span outlive the stack frame that defines it.
Gets this inline array as a span.
⚠ Important ⚠: When this struct is on the stack, do not let the returned span outlive the stack frame that defines it.
The RECTL structure defines a rectangle by the coordinates of its upper-left and lower-right corners.
The RECTL structure is identical to the RECT structure.
Specifies the x-coordinate of the upper-left corner of the rectangle.
Specifies the y-coordinate of the upper-left corner of the rectangle.
Specifies the x-coordinate of the lower-right corner of the rectangle.
Specifies the y-coordinate of the lower-right corner of the rectangle.