TAILIEUCHUNG - Software Solution for Engineers and Scientist Episode 8

Tham khảo tài liệu 'software solution for engineers and scientist episode 8', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 604 Chapter 23 Device context operations belong to two types those that obtain information and those that set attributes. For example the GDI function GetTextColorQ retrieves the current text color from the device context while the function SetTextColorQ is used to change the text color attribute. Although these functions are sometimes referred to as get- and set-types the function names do not always start with these words. For example the SelectObject function is used to both get and set the attributes of pens brushes fonts and bitmaps. Graphics applications often need to obtain information regarding the device context. For example a program may need to know the screen resolution or the number of display colors. One of the most useful functions for obtaining information regarding the capabilities of a device context is GetDeviceCaps . The call to GetDeviceCaps requires two parameters the first one is the handle to the device context and the second one is an index value that identifies the capability being queried. Table lists some of the most useful information returned by this function. Table Information Returned by GetDeviceCaps INDEX MEANING DRIVERVERSION TECHNOLOGY Version number of device driver. Any one of the following Value Meaning DT_PLOTTER Vector plotter DT_RASDLSPLAY Raster display DT_RASPRINTER Raster printer DT_RASCAMERA Raster camera DT_CHARSTREAM Character stream DT_METAFILE Metafile DT DISPFILE Display file HORZSIZE VERTSIZE HORZRES VERTRES LOGPIXELSX Width of the physical screen millimeters . Height of the physical screen millimeters . Width of the screen pixels . Height of the screen raster lines . Number of pixels per logical inch along the screen width. LOGPIXELSY Number of pixels per logical inch along the screen height. BITSPIXEL PLANES NUMBRUSHES NUMPENS NUMFONTS NUMCOLORS Number of color bits per pixel. Number of color planes. Number of device-specific brushes. Number of device-specific pens. Number of device-specific fonts. .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.