Visual Basic, .NET, ASP, VBScript
 

   
   
     

Форум - Общий форум

Страница: 1 |

 

  Вопрос: Функция ARC Добавлено: 19.05.05 17:40  

Автор вопроса:  _miha_
Объясните пожалуста как работает эта хитрая функция.

Ответить

  Ответы Всего ответов: 2  

Номер ответа: 1
Автор ответа:
 Sharp


Лидер форума

ICQ: 216865379 

Вопросов: 106
Ответов: 9979
 Web-сайт: sharpc.livejournal.com
 Профиль | | #1
Добавлено: 20.05.05 03:14
Arc
The Arc function draws an elliptical arc.

BOOL Arc(
  HDC hdc, // handle to device context
  int nLeftRect, // x-coord of rectangle's upper-left corner
  int nTopRect, // y-coord of rectangle's upper-left corner
  int nRightRect, // x-coord of rectangle's lower-right corner
  int nBottomRect, // y-coord of rectangle's lower-right corner
  int nXStartArc, // x-coord of first radial ending point
  int nYStartArc, // y-coord of first radial ending point
  int nXEndArc, // x-coord of second radial ending point
  int nYEndArc // y-coord of second radial ending point
);
Parameters
hdc
[in] Handle to the device context where drawing takes place.
nLeftRect
[in] Specifies the x-coordinate, in logical units, of the upper-left corner of the bounding rectangle.
Windows 95/98/Me: The sum of nLeftRect plus nRightRect must be less than 32768.

nTopRect
[in] Specifies the y-coordinate, in logical units, of the upper-left corner of the bounding rectangle.
Windows 95/98/Me: The sum of nTopRect plus nBottomRect must be less than 32768.

nRightRect
[in] Specifies the x-coordinate, in logical units, of the lower-right corner of the bounding rectangle.
Windows 95/98/Me: The sum of nLeftRect plus nRightRect must be less than 32768.

nBottomRect
[in] Specifies the y-coordinate, in logical units, of the lower-right corner of the bounding rectangle.
Windows 95/98/Me: The sum of nTopRect plus nBottomRect must be less than 32768.

nXStartArc
[in] Specifies the x-coordinate, in logical units, of the ending point of the radial line defining the starting point of the arc.
nYStartArc
[in] Specifies the y-coordinate, in logical units, of the ending point of the radial line defining the starting point of the arc.
nXEndArc
[in] Specifies the x-coordinate, in logical units, of the ending point of the radial line defining the ending point of the arc.
nYEndArc
[in] Specifies the y-coordinate, in logical units, of the ending point of the radial line defining the ending point of the arc.
Return Values
If the arc is drawn, the return value is nonzero.

If the arc is not drawn, the return value is zero.

Windows NT/2000/XP: To get extended error information, call GetLastError.

Remarks
The points (nLeftRect, nTopRect) and (nRightRect, nBottomRect) specify the bounding rectangle. An ellipse formed by the specified bounding rectangle defines the curve of the arc. The arc extends in the current drawing direction from the point where it intersects the radial from the center of the bounding rectangle to the (nXStartArc, nYStartArc) point. The arc ends where it intersects the radial from the center of the bounding rectangle to the (nXEndArc, nYEndArc) point. If the starting point and ending point are the same, a complete ellipse is drawn.

The arc is drawn using the current pen; it is not filled.

The current position is neither used nor updated by Arc.

Windows 95/98/Me: The drawing direction is always counterclockwise.

Windows NT/2000/XP: Use the GetArcDirection and SetArcDirection functions to get and set the current drawing direction for a device context. The default drawing direction is counterclockwise.

Windows 95/98/Me: The sum of the coordinates of the bounding rectangle cannot exceed 32,767. The sum of nLeftRect and nRightRect or nTopRect and nBottomRect parameters cannot exceed 32,767.

Requirements
  Windows NT/2000/XP: Included in Windows NT 3.1 and later.
  Windows 95/98/Me: Included in Windows 95 and later.
  Header: Declared in Wingdi.h; include Windows.h.
  Library: Use Gdi32.lib.

Что непонятно?

Ответить

Номер ответа: 2
Автор ответа:
 Genetik



ICQ: 3212009 

Вопросов: 5
Ответов: 33
 Профиль | | #2 Добавлено: 25.05.05 00:22
...А чё ето...

Ответить

Страница: 1 |

Поиск по форуму



© Copyright 2002-2011 VBNet.RU | Пишите нам