Windows API function Daquan 3

Source: Internet
Author: User

7. API bitmap, icon, and grating operation functions
Bitblt copies a bitmap from one device scenario to another
Copyicon makes a copy of the specified icon or mouse pointer. This copy belongs to the application that issued the call.
Copy a bitmap, icon, or pointer, and perform some conversion during the copy process.
Createbitmap creates a device-related bitmap in the specified format.
Createbitmapindirect creates a device-related bitmap.
Createcompatiblebitmap creates a device-related bitmap that is compatible with specified device scenarios.
Createcursor creates a mouse pointer
Createdibitmap creates a device-related Bitmap Based on a device-independent bitmap.
Createdibsection create a dibsection
Createicon creates an icon
Createiconindirect creates an icon
Destroycursor clears the specified mouse pointer and releases all system resources it occupies.
Destroyicon clear icon
Drawicon draws an icon at a specified position
Drawiconex depicts an icon or a mouse pointer. This function provides more functions than drawicon.
Extractassociatedicon checks whether an executable program or dll has an icon, or whether an icon exists and is extracted from the file specified in the system registry.
Extracticon checks whether an icon exists in an executable file or DLL and extracts it
Getbitmapbits copies the binary bit from the bitmap to a buffer zone.
Getbitmapdimensionex obtains the width and height of a bitmap.
Getdibcolortable obtains the color table information from the dibsection of the selected device scenario.
Getdibits copies the binary bits from a bitmap to a device-independent bitmap.
Geticoninfo obtains information about the icon.
Getstretchbltmode: The scaling mode used to judge the functions of stretchblt and stretchdibits
Loadbitmap loads a bitmap from a specified module or application instance.
Loadcursor loads a mouse pointer from a specified module or application instance
Loadcursorfromfile creates a pointer based on a pointer file or an animation pointer File
Loadicon loads an icon from a specified module or application instance
LoadImage loads a bitmap, icon, or pointer.
Maskblt performs complex image transmission and simultaneously processes masks.
Patblt fills the specified device scenario with a pattern based on the selected brush
Plgblt copies a bitmap and converts it into a parallelogram. It allows bitmap rotation.
Setbitmapbits: Copies the binary bit from the buffer to a bitmap.
Setbitmapdimensionex sets the width of a bitmap. In the unit of 1mm
Setdibcolortable: sets the color table information of a dibsection in the device scenario.
Setdibits copies the binary bits from a device-independent bitmap to a device-related bitmap.
Setdibitstodevice copies all or part of data from a device-independent bitmap to a device.
Setstretchbltmode specifies the scaling mode of the stretchblt and stretchdibits functions.
Stretchblt copies a bitmap from one device scenario to another
Stretchdibits copies all or part of the device-independent bitmap data to the specified device scenario.
8. Plotting functions of Apis
Abortpath discards all paths selected for a specified device scenario. Cancel creating any path currently in progress
Anglearc draws a line with a connection arc
Draw an arc
Beginpath starts a path Branch
Canceldc cancels the long Drawing operation in another thread
Draw a string with chord
Closeenhmetafile disables the specified Enhanced Metafile device scenario, and returns a handle to the newly created Metafile.
When closefigure depicts a path, close the currently opened Image
Closemetafile disables the specified Metafile device scenario and returns a handle to the newly created Metafile
Copyenhmetafile: Create a copy (copy) of the specified enhanced primitive File)
Copymetafile: Creates a copy of a specified (standard) Metafile.
Createbrushindirect creates a brush based on a logbrush Data Structure
Createdibpatternbrush creates a brush with a device-independent bitmap to specify the brush style (pattern)
Createenhmetafile: Create an Enhanced Metafile device scenario
Createhatchbrush creates a shadow brush
Createmetafile: Create a Metafile device scenario
Createpatternbrush creates a brush with a bitmap of the specified brush pattern
Createpen creates a paint brush with the specified style, width, and color
Createpenindirect creates a paint brush Based on the specified logpen structure.
Createsolidbrush create a brush with solid color
Deleteenhmetafile: delete a specified Enhanced Metafile.
Deletemetafile: delete a specified Metafile
Deleteobject: Delete the GDI object. All system resources used by the object will be released.
Drawedge depicts the border of a rectangle with the specified Style
The drawescape code change function sends data directly to the display device driver.
Drawfocusrect draws a focal rectangle
Drawframecontrol depicts a standard control
Drawstate applies a variety of effects to an image or drawing operation
Ellipse depicts an ellipse surrounded by a specified rectangle
The endpath stops defining a path.
Enumenhmetafile: for an enhanced-type Metafile, it lists individual Metafile records.
Enummetafile is a standard Windows Metafile enumeration of individual Metafile records
Enumobjects enumeration brushes and brushes that can be used along with a specified device scenario
Extcreatepen creates an extension paint brush (decoration or ry)
Extfloodfill fills an area with the selected brush in a specified device scenario
Fillpath: close any opened image in the path and fill it with the current brush.
Fillrect fills a rectangle with the specified brush
Flattenpath converts all curves in a path into line segments
Floodfill fills an area in the specified device scenario with the selected brush
Framerect draws a border around a rectangle with the specified brush
Gdicomment adds a comment for the specified Enhanced Metafile device scenario
Gdiflush performs any pending drawing operations
Gdigetbatchlimit: determines how many GDI drawing commands are in the queue
Gdisetbatchlimit specifies how many GDI drawing commands can enter the queue
When getarcdirection draws an arc, it determines the current drawing direction
Getbkcolor: obtains the current background color of a specified device scenario.
Getbkmode obtains the current background filling mode for specified device scenarios.
Getbrushorgex determines the starting point of the selected brush in a specified device scenario
Getcurrentobject: Get the currently selected object of the specified type
Getcurrentpositionex obtains the current paint position in the specified device scenario.
Getenhmetafile: obtains the metadata file handle of an Enhanced Metafile contained in the disk file.
Getenhmetafilebits copies the specified Enhanced Metafile to a memory buffer.
Getenhmetafiledescription returns the description of an Enhanced Metafile.
Getenhmetafileheader: obtains the Metafile header of the enhanced primitive file.
GetEnhMetaFilePaletteEntries
Getmetafile: Get the metadata file handle of the metadata file contained in a disk file
Getmetafilebitsex copies the specified Metafile to a memory buffer
Getmiterlimit: Set the slope limit (miter) for the device scenario.
Getnearestcolor obtains a solid color closest to the specified color based on the display capability of the device.
Getobjectapi gets a structure that describes the specified object
Getobjecttype determines the type of the GDI object referenced by the specified handle
Getpath gets a series of data defined for the current path
Getpixel obtains the RGB value of a pixel in a specified device scenario.
Getpolyfillmode obtains the polygon filling mode for specified device scenarios.
Getrop2 obtains the current drawing mode for a specified device scenario
Getstockobject gets an inherent object (stock)
Getsyscolorbrush gets a brush for any standard system color
Getwinmetafilebits: fills in data for standard graph meta files in a buffer, and converts an enhanced primitive file to a standard Windows Metafile
Invertrect reverses the specified rectangle in a device scenario by reversing the value of each pixel.
Linedda enumeration all vertices in a specified line segment
Lineto draws a line with the current paint brush and connects it from the current position to a specified vertex.
Movetoex specifies a new current paint position for a specified device scenario
Paintdesk depicts the desktop wallpaper pattern in a specified device scenario
Pathtoregion converts the selected path to a region.
Pie draws a pie chart
Playenhmetafile: draws an Enhanced Metafile in a specified device scenario.
Playenhmetafilerecord playback an enhanced element file record
Playmetafile: play back a Metafile in a specified device scenario.
Playmetafilerecord: playback of a single record from a Metafile
Polybetiller depicts one or more betiller curves.
Polydraw depicts a complex curve, which consists of a line segment and a besell curve.
Polygon depicts a polygon.
Polyline depicts a series of line segments with the current paint brush
Polypolygon depicts two or more polygon with the selected paint brush
Polypolyline depicts two or more polygon with the selected paint brush
Rectangle depicts the rectangle with the selected paint brush and fills it with the selected paint brush
Roundrect draws a rounded rectangle with the selected paint brush and fills it with the selected paint brush.
Selectclippath combines the current path of the device scenario into the cut area
SelectObject: select a graphical object for the current device scenario
Setarcdirection
Setbkcolor sets the background color for the specified device scenario
Setbkmode specifies the fill mode of the shadow brush, dotted brush, and space in characters
Setbrushorgex sets the starting point of the selected brush for the specified device scenario
Setenhmetafilebits creates an Enhanced Metafile with the data contained in the specified memory buffer.
Setmetafilebitsex creates an Metafile with the data structure contained in the specified memory buffer.
Setmiterlimit: sets the current slope limit for a device scenario.
Setpixel sets the RGB value of a pixel in a specified device scenario.
Setpixelv sets the RGB value of a pixel in a specified device scenario.
Setpolyfillmode: Set the polygon filling mode.
Setrop2 sets the drawing mode for the specified device scenario. Consistent with the drawmode attribute of VB
Setwinmetafilebits converts a standard Windows Metafile to a reinforced Metafile
Strokeandfillpath: disables all regions opened in the path for specified device scenarios.
Strokepath depicts the outline of a path with the current paint brush. The opened graph is not disabled by this function.
Unrealizeobject before selecting a paint brush object into a device scenario, if the starting point of the paint brush is to be modified with setbrushorgex, you must call this function first.
Widenpath redefines the selected path based on the width of the selected paint brush.
9. API-based device scenario Functions
Combinergn combines two regions into a new region
Combinetransform drives world conversion. It is equivalent to two conversions in order
Createcompatibledc creates a memory device scenario consistent with the specific device scenario
Createdc creates a device for a dedicated device
Createellipticrgn
Createellipticrgnindirect
Createic creates an information scenario for a dedicated device
Createpolygonrgn creates an area surrounded by a series of points
Createpolypolygonrgn creates an area composed of multiple polygon. Each polygon should be closed.
Createrectrgn create a rectangular area
Createrectrgnindirect creates a rectangular area
Createroundrectrgn create a rounded rectangle
Deletedc deletes a special device scenario or information scenario and releases all related window resources.
Dptolp coordinates the point matrix from the device to the logic coordinate of the specific device scenario
Equalrgn determine whether the two regions are equal
Excludecliprect removes a rectangular area from the cropping area of a specific device scenario. Drawing is not allowed in the rectangle
Excludeupdatergn removes the refresh area of the specified window from the tailored area of the dedicated device scenario
Extcreateregion: Modify region based on world Conversion
Extselectcliprgn combines the specified area to the current clipping area of the device scenario.
Fillrgn fills the specified area with the specified brush
Framergn draws an external frame around a specified area with a specified brush
Getboundsrect: Get the boundary rectangle of a specified device scenario
Getclipbox obtains the minimum rectangle that completely contains the clipping area of the specified device scenario.
Getcliprgn
Getdc
Getdcex is used to obtain devices in a specified window. This function provides more options than getdc.
Getdcorgex obtains the starting position of a specified device scenario (represented by screen coordinates)
Getdevicecaps returns information based on the features of the specified device.
Getgraphicsmode determine whether to allow enhanced graphics mode (World conversion)
Getmapmode
Getregiondata mount the rgndata structure or buffer that describes the region information
Getrgnbox obtains the smallest rectangle that completely contains the specified area.
Getupdatergn determines the refresh area of the specified window. This region is currently invalid and needs to be refreshed
Getviewportextex
Getviewportorgex: Get the start point of the device scene.
Getwindowdc obtains the device scenario of the entire window, including the border, scroll bar, title bar, and menu.
Getjavaswextex: obtains the window range of a specified device scenario.
Getjavasworgex obtains the start point of the logical window for a specified device scenario.
Getjavaswrgn get window area
Getworldtransform if there is a world conversion, get the current world conversion for the device scenario
Intersectcliprect defines a new clipping area for the specified device
Invalidatergn makes the specified area of the window inactive, and adds it to The Window refresh area so that it can be repainted later
Invertrgn reverse each pixel value by reversing the specified area of a device scenario
Lptodp converts the logic coordinate of the dot matrix from the specified device scenario to the device coordinate
Modifyworldtransform
Offsetcliprgn: Translation of device scene clipping area based on specified quantity
Offsetrgn pan the specified region at the specified offset
Offsetviewportorgex: Specifies the position of the translation device.
Offset0000worgex translation specifies the start point of the device scenario window
Paintrgn uses the background color of the current brush to fill the specified area
Ptinregion: determines whether the vertex is in the specified region.
Ptvisible: determines whether the specified vertex is visible (that is, whether the vertex is in the device scene clipping zone)
Rectinregion
Rectvisible: determines whether the specified rectangle is partially visible (whether it is in the device scene clipping Area)
Releasedc releases a specified device scenario obtained by calling the getdc or getwindowdc function.
Restoredc restores a previously stored device scenario from the device scenario Stack
Savedc saves the specified device scenario status to the Windows Device scenario stack.
Scaleviewportextex
Scalewindowextex scaling specifies the device scenario window range
Scrolldc in the window (represented by the device scenario), the horizontal and (or) vertical scroll rectangle
Selectcliprgn: select a new cropping area for a specified device scenario
Setboundsrect: Set the boundary rectangle of the specified device scenario
Setgraphicsmode allows or disables enhanced graphics mode to provide some support (including world conversion)
Setmapmode: sets the ing mode for a specified device scenario.
Setrectrgn: Set the region to the specified rectangle.
Setviewportextex
Setviewportorgex
Setmediawextex: Set the window range of the specified device scenario
Setdomainworgex: Set the start point of the specified device scenario window
Setmediawrgn settings window area
Setworldtransform
In the validatergn activation window, specify a region and remove it from the refresh area.
Windowfromdc retrieves the handle of a window related to a certain device scenario

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.