Gdi
Other versions of this page are also available for the following:
8/28/2008
The following table shows the Gdi classes, which provide access to internal graphics device interface (GDI) functions that you can use when drawing controls.
Method | Description |
---|---|
Stops the current print job. |
|
Adds the font resource from the specified file to the font table for Windows Embedded CE. Any Windows Embedded CEābased application can subsequently use the font for text output. |
|
Displays bitmaps that have transparent or semitransparent pixels. |
|
Transfers pixels from a specified source rectangle to a specified destination rectangle, altering the pixels according to the selected raster operation (ROP) code. |
|
Removes a font resource identified by a specified object identifier. |
|
Combines two regions and stores the result in a third region. The Gdi::CombineRgn_I method combines the two regions according to the specified mode. |
|
Creates a bitmap with the specified width, height, and bit depth. |
|
Creates a bitmap compatible with the device associated with the specified device context. |
|
Creates a memory device context compatible with the specified device. |
|
Creates a device context for a device. |
|
Creates a logical brush that has the pattern specified by the device-independent bitmap (DIB). |
|
Creates a logical font that has the characteristics specified in the specified LOGFONT structure. You can subsequently select the font as the current font for any device context. |
|
Creates a logical color palette. |
|
Creates a logical brush with the specified bitmap pattern. |
|
Creates a logical pen that has the specified style, width, and color. You can subsequently select the pen into a device context and use the pen to draw lines and curves. |
|
Creates a logical cosmetic pen that has the style, width, and color specified in the LOGPEN structure. |
|
Creates a device-independent bitmap (DIB) that applications can write to directly. The method returns a handle to the bitmap. |
|
Creates a rectangular region. |
|
Creates a rectangular region. |
|
Creates a logical brush that has the specified solid color. |
|
Deletes the specified device context. |
|
Deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After Gdi::DeleteObject_I deletes the object, the specified handle is no longer valid. |
|
Retrieves the number of bytes in each scan line. This value must be divisible by 2, because the OS assumes that the bit values of a bitmap form an array that is word aligned. |
|
Retrieves the size, in bytes, of the image. This value can be zero for BI_RGB bitmaps. |
|
Draws one or more edges of a rectangle. |
|
Draws a rectangle in the style used to indicate that the rectangle has the focus. |
|
Draws formatted text in the specified rectangle, formatting the text according to the specified format method. |
|
Draws an ellipse. The center of the ellipse is the center of the specified bounding rectangle. The ellipse is outlined by the currently selected pen and filled by the currently selected brush. |
|
Enables or disables end-user-defined characters (EUDC). |
|
Ends a print job. |
|
Informs the device that the application has finished writing to a page. An application typically uses this function to direct the device driver to advance to a new page. |
|
Enumerates screens that intersect a region formed by the intersection of a specified clipping rectangle and the visible region of a specified device context. |
|
Enumerates the fonts in a specified font family that are available on a specified device. This function supersedes the Gdi::EnumFontsW_I method. |
|
Enumerates the fonts available on a specified device. This method is provided for compatibility with earlier versions of the Microsoft Windows SDK. When possible, applications should use the Gdi::EnumFontFamiliesW_I method. |
|
Creates a new clipping region that consists of the existing clipping region minus the specified rectangle. |
|
Allows applications to access capabilities of a particular device that are not available through the graphics display interface (GDI). The OEM must implement the device capabilities that this function accesses. |
|
Draws a character string by using the currently selected font. When you call this method, you may provide an optional rectangle to be used for clipping, opaquing, or both. |
|
Fills a rectangle using the specified brush. This method fills the left and top borders of the rectangle, but excludes the right and bottom borders. |
|
Fills a region using the specified brush. |
|
Changes the process that owns a GDI object. |
|
Returns the current background color for the specified device context. |
|
Returns the current background mix mode for a specified device context. The background mix mode of a device context affects text and dashed pens. |
|
Retrieves the dimensions of the tightest bounding rectangle that can be drawn around the current visible area on the device. The visible area is defined by the current clipping region as well as any overlapping windows. |
|
Retrieves a handle identifying the current application-defined clipping region for the specified device context. |
|
Returns the currently selected object of the specified type. |
|
Retrieves information about the capabilities of a specified device. |
|
Retrieves information about a screen. |
|
Returns the system palette color that will be displayed when the specified color value is used. |
|
Retrieves the index for the entry in the specified logical palette that most closely matches a specified color value. |
|
Returns the type of the specified object. |
|
Obtains information about a specified graphics object. Depending on the graphics object, the method places a filled-in BITMAP, DIBSECTION, LOGBRUSH, LOGFONT, or LOGPEN structure into a specified buffer. |
|
This method retrieves text metrics for TrueType fonts. |
|
Retrieves a specified range of palette entries from the specified logical palette. |
|
Retrieves the red, green, blue (RGB) color value of the pixel at the specified coordinates. |
|
Fills the specified buffer with data describing a region. This data includes the dimensions of the rectangles that make up the region. |
|
Retrieves the bounding rectangle of the specified region. |
|
Retrieves the current stretching mode. |
|
Retrieves a handle identifying a logical brush that corresponds to the specified color index. |
|
Retrieves a range of palette entries from the system palette associated with the specified device context. |
|
Retrieves the current text color for the specified device context. |
|
Retrieves the number of characters in a specified string that fit within a specified space and fills an array with the text extent for each of those characters. A text extent is the distance between the beginning of the space and a character that will fit in the space. |
|
Retrieves the typeface name of the font that is selected into the specified device context. |
|
Fills the specified buffer with the metrics for the currently selected font. |
|
Creates a new clipping region from the intersection of the current clipping region and the specified rectangle. |
|
Inverts a rectangle in a window by performing a logical NOT operation on the color values for each pixel in the interior of the rectangle. |
|
Combines the color data for the source and destination bitmaps using the specified mask and raster operation. |
|
Retrieves a handle to the screen that contains a specified point. |
|
Retrieves a handle to the screen that has the largest area of intersection with a specified rectangle. |
|
Retrieves a handle to the screen that has the largest area of intersection with the bounding rectangle of a specified window. |
|
Moves a region by the specified offsets. |
|
Paints the given rectangle using the brush that is currently selected into the specified device context. The brush pixels and the surface pixels are combined according to the specified raster operation. |
|
Draws a polygon consisting of two or more vertices connected by straight lines. The current pen outlines the polygon, and the current brush fills the polygon using the specified polygon fill mode. |
|
Draws a series of line segments by connecting the points in the specified array. |
|
Determines whether the specified point is inside the specified region. |
|
Maps palette entries from the current logical palette to the system palette. |
|
Draws a rectangle. The current pen outlines the rectangle and the current brush fills the rectangle. |
|
Determines whether any part of the specified rectangle is within the boundaries of a region. |
|
Determines whether any part of the specified rectangle lies within the clipping region of the specified device context. |
|
Removes the fonts in the specified file from the Windows Embedded CE font table. |
|
Restores a device context to the specified state. The device context is restored by popping state information off a stack created by earlier calls to the Gdi::SaveDC_I method. |
|
Draws a rectangle with rounded corners. The current pen outlines the rectangle and the current brush fills the rectangle. |
|
Saves the current state of the specified device context by copying data describing selected objects and graphic modes, such as the bitmap, brush, palette, font, pen, region, and drawing mode, to a context stack. |
|
Scrolls a rectangle of bits horizontally and vertically. |
|
Selects a region as the current clipping region for the specified device context. |
|
Selects an object into a specified device context. The new object replaces the previous object of the same type. |
|
Selects the specified logical palette into a device context. |
|
Sets the application-defined function that allows a print job to be canceled during printing. |
|
Sets the current background color to the specified color. If the device cannot represent the specified color, the device sets the background color to the nearest physical color. |
|
Sets the background mix mode of the specified device context. The background mix mode is used with text, hatched brushes, and with nonsolid pen styles. |
|
Called by an application to set the brush origin of the next brush selected into the specified device context. |
|
Sets RGB (red, green and blue) color values and flags in a range of entries in a logical palette. |
|
Sets the pixel at the specified coordinates to the specified color. |
|
Changes a region into a rectangular region with the specified coordinates. |
|
Sets the current foreground mix mode. GDI uses the foreground mix mode to combine pens and interiors of filled objects with the colors already on the screen. The foreground mix mode defines how colors from the brush or pen are combined with the colors in the existing image. |
|
Sets the bitmap stretching mode in the specified device context. |
|
Sets the text color of the specified device context to the specified color. |
|
Sets the viewpoint origin of a device context to the specified coordinates. |
|
Starts a print job. |
|
Prepares the printer driver to accept data. |
|
Copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows Embedded CE stretches or compresses the bitmap according to the stretching mode set in the destination device context. |
|
Translates based on the specified character set, code page, or font signature value, setting all members of the destination structure to appropriate values. |
|
Transfers a bitmap, omitting the portions drawn in a specified color. |
Requirements
Header | gdi.hpp |
Windows Embedded CE | Windows CE .NET 4.0 and later |