DC is the device context, which is a data structure inside GDI. a dc will work with a specific display device (
Such as printers and screens). If we can get the handle of the DC, We can display it here.
Write and draw pictures on the device.
In form or picturebox, there is an HDC attribute, which refers to this thing, but how can there be another
What about memory DC? This is a DC that exists in the memory, except for
Other words are almost the same, and can also be used in all gdi api calls.
We have used this memory DC in VB for a long time, but we are not conscious of it. When we set form picturebox's
When autoredraw is set to true, HDC refers to momoory DC. In this case, we plot the data on it.
It is not displayed on the form. This is what we previously said. It is only in the memory and will not really draw a picture.
In the refresh command, the figure on the memorydc is copied to form/picturebox.
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