GDI + development tutorial based on Visual C ++. Net

xiaoxiao2021-03-06  63

GDI development tutorial based on Visual C . Net

Odor

The function of the CIMAGE Visual C CBITMAP class and the still picture control can only display icons, bitmaps, cursors, and contents of the icon, bitmap, cursor, and element files in the resource, not like the image control in VB. Display most external image files (BMP, GIF, JPEG, etc.). Therefore, you want to display an external image file in a dialog or other window, you can only use the controls or code provided by a third party. Now, the new CIMAGE shared by the MFC and ATL provides many corresponding methods for image processing, which makes Visual C 's shortcomings in the image. Full-text reading

Odor

Related topic

Visual C . NET programming base lecture

Visual C .NET programming actual combat

Netizen message

Latest Recommended

Based on Visual C . NET's GDI development tutorial developers can draw graphics, text, and images through GRAPHICS DEVICE INTERFACE in the Windows window. However, GDI's image processing capacity is very lacking. The bitmap exceeds 256 colors will distort or cannot be displayed, so the developer is waiting for a new generation of graphics processing tools anxiously. After a long waiting, we finally waited for GDI . GDI is a new version of GDI. It has added a number of new features on the basis of GDI, providing developers with a series of API interfaces that process two-dimensional vector graphics, text, images, and graphics data matrices. This paper has been made from practical applications, focusing on the general use of GDI and CIMAGE classes, and methods of use in image processing.

⊙GDI

In this section, first introduce the new features of GDI and their programming modifications, and then introduce Visual C . Net uses GDI in applications based on dialog and single document / multi-document. Full-text reading

⊙GDI drawing foundation

GDI provides a large number of methods drawn from simple to complex graphics, and we can construct more complex graphics through operations of paths and regions, which are extremely useful in CAD. Of course, we need to get some basic content before drawing, such as coordinate space, brush and painting, etc. Full-text reading

⊙ font and text drawing

The font is text display and printing appearance form, which includes a multifaceted attribute such as text, style, and size. Different fonts are properly selected, which can greatly enrich the external expressive power of text. For example, use some important words in the text to display a thicker font, it can reflect the intention of highlighting and emphasizing. Of course, it is also possible to use its formatting properties and display quality to optimize text display. Full-text reading

⊙ image processing

In conventional image processing, it is often necessary to convert in different formats according to the format of different image files and their data storage structures. The display of an image file is also realized on the analysis of the file data structure, and then reads related image data. Now, GDI provides image and bitmap classes to make us easily handle images. Full-text reading

转载请注明原文地址:https://www.9cbs.com/read-89264.html

New Post(0)