Session 7: Advanced Windows Forms Features

GDI+ provides the basic functionality to implement graphics in WinForms. GDI+ resides in assembly. The Graphics class is present in the namespace. It cannot be inherited. The CreateGraphics() method is used to create the Graphics object. It is a method of the Control class. Graphics objects can also be created from any object that derives from the Image class. | Session 7 Advanced Windows Forms Features Review GDI+ provides the basic functionality to implement graphics in WinForms. GDI+ resides in assembly. The Graphics class is present in the namespace. It cannot be inherited. The CreateGraphics() method is used to create the Graphics object. It is a method of the Control class. Graphics objects can also be created from any object that derives from the Image class. This is done by using the FromImage() method of the Graphics class: The Pen object can be used to specify fill styles for objects. The Pen class belongs to the namespace and cannot be inherited. The Brush class is used to fill shapes with solid color. It is abstract and belongs to the namespace. The Color structure is used to create or use colors for graphics in GDI+. It has various color names as its members which can be invoked to display particular colors. Review Contd The DrawLine() method of the Graphics class . | Session 7 Advanced Windows Forms Features Review GDI+ provides the basic functionality to implement graphics in WinForms. GDI+ resides in assembly. The Graphics class is present in the namespace. It cannot be inherited. The CreateGraphics() method is used to create the Graphics object. It is a method of the Control class. Graphics objects can also be created from any object that derives from the Image class. This is done by using the FromImage() method of the Graphics class: The Pen object can be used to specify fill styles for objects. The Pen class belongs to the namespace and cannot be inherited. The Brush class is used to fill shapes with solid color. It is abstract and belongs to the namespace. The Color structure is used to create or use colors for graphics in GDI+. It has various color names as its members which can be invoked to display particular colors. Review Contd The DrawLine() method of the Graphics class is used to draw a line on the screen. The DrawString() method of Graphics class is used to display text on the screen without using any text related controls. The DrawImage() method of Graphics class is used to draw image files on the screen namespace includes the gradient brushes, Matrix and GraphicsPath classes to provide the functionality of 2-dimensional and vector graphics. The PrintDocument class is used for printing GDI+ objects. This class is defined in the namespace. namespace contains the TextRenderingHeight enumeration which is used to define the mode of the rendered text. Objectives Create Simple Custom WinForms Controls Add properties to WinForms Controls Associate events with WinForms controls Inherit from the existing WinForms Controls Handle mails in WinForms Associate Help files with an application Package and deploy an application Provides normal controls Introduction WinForms Used as Normal Control .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
8    64    2    04-05-2024
Đã 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.