TAILIEUCHUNG - programming windows phần 2

Ba chức năng này không được hỗ trợ trong Windows 98. Sau đó, trong chương này, tôi cũng sẽ thảo luận về một số chức năng vẽ đường nhưng cũng có thể điền vào các khu vực kèm theo trong hình vẽ. Các chức năng này Ngoài ra, Windows NT hỗ trợ thêm ba chức năng vẽ đường | This document is created with the unregistered version of CHM2PDF Pilot Simpo pDFijMergevand SplitaUnregisteredVersiont-ahttp PolyPolyline Draws multiple polylines. Arc Draws elliptical lines. PolyBezier andPolyBezierTo Draw Bezier splines. In addition Windows NT supports three more line-drawing functions ArcTo andAngleArc Draw elliptical lines. PolyDraw Draws a series of connected straight lines and Bezier splines. These three functions are not supported under Windows 98. Later in this chapter I ll also be discussing some functions that draw lines but that also fill the enclosed area within the figure they draw. These functions are Rectangle Draws a rectangle. Ellipse Draws an ellipse. RoundRect Draws a rectangle with rounded corners. Pie Draws a part of an ellipse that looks like a pie slice. Chord Draws part of an ellipse formed by a chord. Five attributes of the device context affect the appearance of lines that you draw using these functions current pen position for LineTo PolylineTo PolyBezierTo and ArcTo only pen background mode background color and drawing mode. To draw a straight line you must call two functions. The first function specifies the point at which the line begins and the second function specifies the end point of the line MoveToEx hdc xBeg yBeg NULL LineTo hdc xEnd yEnd MoveToEx doesn t actually draw anything instead it sets the attribute of the device context known as the current position. The LineTo function then draws a straight line from the current position to the point specified in the LineTo function. The current position is simply a starting point for several other GDI functions. In the default device context the current position is initially set to the point 0 0 . If you call LineTo without first setting the current position it draws a line starting at the upper left corner of the client area. A brief historical note In the 16-bit versions of Windows the function to set the current position was MoveTo. This function .

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.