На главную

On-line справка по Win32 API

Написать письмо
БЕСПЛАТНАЯ ежедневная online лотерея! Выигрывай каждый день БЕСПЛАТНО!
Список всех статей A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z | Скачать Вниз

About Paths



A path is one of the objects associated with a device context (DC). However, unlike the default objects (the pen, the brush, and the font) that are part of any new DC, there is no default path. For more information about DCs, see Device Contexts.

To create a path and select it into a DC, it is first necessary to define the points that describe it. This is done by calling the BeginPath function, specifying the appropriate drawing functions, and then by calling the EndPath function. This combination of functions (BeginPath, drawing functions, and EndPath) constitute a path bracket. The following functions can be used in a path bracket.

AngleArc LineTo Polyline
Arc MoveToEx PolylineTo
ArcTo Pie PolyPolygon
Chord PolyBezier PolyPolyline
CloseFigure PolyBezierTo Rectangle
Ellipse PolyDraw RoundRect
ExtTextOut Polygon TextOut


When an application calls EndPath, Windows selects the associated path into the specified DC. (If another path had previously been selected into the DC, Windows deletes that path without saving it.) After Windows selects the path into the DC, an application can operate on the path in one of the following ways:

· Draw the outline of the path (using the current pen).
· Paint the interior of the path (using the current brush).
· Draw the outline and fill the interior of the path.
· Modify the path (converting curves to line segments).
· Convert the path into a clip path.
· Convert the path into a region.
· Flatten the path by converting each curve in the path into a series of line segments.
· Retrieve the coordinates of the lines and curves that compose a path.




Пригласи друзей и счет твоего мобильника всегда будет положительным!
Предыдущая статья
 
Сайт Народ.Ру Интернет
Следующая статья
Пригласи друзей и счет твоего мобильника всегда будет положительным!

О Путях



Путь - одного из объектов связанных контекстом устройства (DC). Тем не менее, в отличие от встроенных объектов ( ручка, щетка, и шрифт), что - часть любого нового DC, нет пути по умолчанию. Более подробно о DCs, смотри Контексты Устройства.

Чтобы создавать путь и выбираться это в DC, это первое необходимое определять точки, которые описывают это. Это сделан посредством вызова функции BeginPath, определяющего подходящий чертеж функций, и затем вызывая функцию EndPath. Эта комбинация функций (BeginPath, рисующее функции, и EndPath), составлять скобку пути. Следующее функций может быть использовано в скобке пути.

AngleArc LineTo Polyline Arc MoveToEx PolylineTo ArcTo Pie PolyPolygon Chord PolyBezier PolyPolyline CloseFigure PolyBezierTo Rectangle Ellipse PolyDraw RoundRect ExtTextOut Polygon TextOut


Когда приложение называет EndPath, Windows выбирается связанный путь в определенный DC. (Если другой путь прежде был выбран в DC, Окно удаляет этот путь не сохраняя это.) После того, как Окно выберется путь в DC, приложение может подействовать в пути в одном из следующих путей:

Делать схемой пути (использование текущей ручки).
Внутренность Краски пути (использование текущей щетки).
Делать схемой и заполнять внутренность пути.
Модифицировать путь (преобразование изгибается в сегменты линии).
Преобразование путь в путь клипа.
Преобразование путь в регион.
Выравнивать путь преобразовывая каждую кривую в пути в серию сегментов линии.
Извлекать координаты линий и кривые, что формировать путь.




Вверх Version 1.3, Oct 26 2010 © 2007, 2010, mrhx Вверх
 mrhx software  Русский перевод OpenGL  Русский перевод Win32 API
 
Используются технологии uCoz