АвтоАвтоматизацияАрхитектураАстрономияАудитБиологияБухгалтерияВоенное делоГенетикаГеографияГеологияГосударствоДомДругоеЖурналистика и СМИИзобретательствоИностранные языкиИнформатикаИскусствоИсторияКомпьютерыКулинарияКультураЛексикологияЛитератураЛогикаМаркетингМатематикаМашиностроениеМедицинаМенеджментМеталлы и СваркаМеханикаМузыкаНаселениеОбразованиеОхрана безопасности жизниОхрана ТрудаПедагогикаПолитикаПравоПриборостроениеПрограммированиеПроизводствоПромышленностьПсихологияРадиоРегилияСвязьСоциологияСпортСтандартизацияСтроительствоТехнологииТорговляТуризмФизикаФизиологияФилософияФинансыХимияХозяйствоЦеннообразованиеЧерчениеЭкологияЭконометрикаЭкономикаЭлектроникаЮриспунденкция

Объекты Graphics и Drawing в Windows Forms

Читайте также:
  1. Basic Forms of Business Organisation
  2. Dialectics and Its Historical Forms
  3. Drawing a Closed Cardinal Spline
  4. Drawing a Polygon
  5. Drawing and Manipulating Shapes and Images
  6. Forms of Business Organization
  7. Graphics File Formats
  8. How to: Create a Shaped Windows Form
  9. Introduction to Computer Graphics
  10. Irregular Forms
  11. IV. Complete the sentences with the comparative forms of adjectives.
  12. IV. Translate into Russian paying attention to the «-ed»-forms.

Graphics and Drawing in Windows Forms

The common language runtime uses an advanced implementation of the Windows Graphics Device Interface (GDI) called GDI+. With GDI+ you can create graphics, draw text, and manipulate graphical images as objects. GDI+ is designed to offer performance and ease of use. You can use GDI+ to render graphical images on Windows Forms and controls. Although you cannot use GDI+ directly on Web Forms, you can display graphical images through the Image Web Server control.

In this section, you will find topics that introduce the fundamentals of GDI+ programming. Although not intended to be a comprehensive reference, this section includes information about the Graphics, Pen, Brush, and Color objects, and explains how to perform such tasks as drawing shapes, drawing text, or displaying images.

Overview of Graphics

GDI+ is an application programming interface (API) that forms the subsystem of the Microsoft Windows XP operating system. GDI+ is responsible for displaying information on screens and printers. As its name suggests, GDI+ is the successor to GDI, the Graphics Device Interface included with earlier versions of Windows.

Managed Class Interface

The GDI+ API is exposed through a set of classes deployed as managed code. This set of classes is called the managed class interface to GDI+. The following namespaces make up the managed class interface:

· System.Drawing

· System.Drawing.Drawing2D

· System.Drawing.Imaging

· System.Drawing.Text

· System.Drawing.Printing

With a Graphics Device Interface, such as GDI+, you can display information on a screen or printer without having to be concerned about the details of a particular display device. The programmer makes calls to methods provided by GDI+ classes. Those methods, in turn, make the appropriate calls to specific device drivers. GDI+ insulates the application from the graphics hardware. It is this insulation that enables a programmer to create device-independent applications.


Объекты Graphics и Drawing в Windows Forms

Среда CLR использует расширенную реализацию интерфейса Windows GDI (интерфейс) (GDI) — GDI+. Интерфейс GDI+ поддерживает создание графики, вывод текста и управление изображениями в качестве объектов. Интерфейс GDI+ отличается высокой производительность и простотой в использовании. Интерфейс GDI+ можно использовать для вывода графических изображений на формах Windows Forms и элементах управления. Хотя GDI+ нельзя использовать непосредственно на веб-формах, можно выводить графические изображения через элемент управления веб-сервера Image.

В этом разделе описаны основы программирования с использованием GDI+. Хотя данный раздел не является полным справочником, он включает сведения об объектах Graphics, Pen, Brush и Color и способах выполнения таких задач, как рисование фигур, создание текста, отображение рисунков. Дополнительные сведения см. в справочной документации по GDI+, расположенной в библиотеке MSDN по адресу http://msdn.microsoft.com/library.


1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 |

Поиск по сайту:



Все материалы представленные на сайте исключительно с целью ознакомления читателями и не преследуют коммерческих целей или нарушение авторских прав. Студалл.Орг (0.003 сек.)