Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Media";
Текущий архив: 2003.03.03;
Скачать: [xml.tar.bz2];

Вниз

LineDDA   Найти похожие ветки 

 
__Alx___   (2002-11-16 11:49) [0]

LineDDA
Platform SDK: Windows GDI
LineDDA
The LineDDA function determines which pixels should be highlighted for a line defined by the specified starting and ending points.

BOOL LineDDA(
int nXStart, // x-coordinate of starting point
int nYStart, // y-coordinate of starting point
int nXEnd, // x-coordinate of ending point
int nYEnd, // y-coordinate of ending point
LINEDDAPROC lpLineFunc, // callback function
LPARAM lpData // application-defined data
);
Parameters
nXStart
[in] Specifies the x-coordinate of the line"s starting point.
nYStart
[in] Specifies the y-coordinate of the line"s starting point.
nXEnd
[in] Specifies the x-coordinate of the line"s ending point.
nYEnd
[in] Specifies the y-coordinate of the line"s ending point.
lpLineFunc
[in] Pointer to an application-defined callback function. For more information, see the LineDDAProc callback function.
lpData
[in] Pointer to the application-defined data.
Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

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

Remarks
The LineDDA function passes the coordinates for each point along the line, except for the line"s ending point, to the application-defined callback function. In addition to passing the coordinates of a point, this function passes any existing application-defined data.

The coordinates passed to the callback function match pixels on a video display only if the default transformations and mapping modes are used.

Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.

See Also
Lines and Curves Overview, Line and Curve Functions, LineDDAProc

Built on Wednesday, February 09, 2000Requirements
Windows NT/2000: Requires Windows NT 3.1 or later.
Windows 95/98: Requires Windows 95 or later.
Header: Declared in Wingdi.h; include Windows.h.
Library: Use Gdi32.lib.
See Also
Lines and Curves Overview, Line and Curve Functions, LineDDAProc

---------------

Что есть LPARAM lpData ??
In addition to passing the coordinates of a point, this function passes any existing application-defined data.
т.е application-defined data??


 
MBo   (2002-11-16 12:12) [1]

свои дополнительные данные для рисования - какие угодно.
Например, можно передавать указатель на ImageList и для каждой точки выбирать из него картинку


 
__Alx___   (2002-11-16 12:15) [2]

Чуть чуть подробней
А если у меня толко координаты линии ? ТОгда передавать 0?


 
MBo   (2002-11-16 12:17) [3]

если ничего не нужно, то и не передавай - 0 или nil



Страницы: 1 вся ветка

Форум: "Media";
Текущий архив: 2003.03.03;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.009 c
1-5618
Альф
2003-02-20 09:38
2003.03.03
Почему не удается послать сообщение LB_SETTABSTOPS ???


14-5720
MBo
2003-02-14 17:38
2003.03.03
Pascal and its Successors - Niklaus Wirth


1-5539
REA
2003-02-21 13:28
2003.03.03
round - VC vs Delphi


1-5596
Oleksiy
2003-02-19 17:52
2003.03.03
Первая заглавная буква во вводимом тексте


1-5637
avch
2003-02-20 13:36
2003.03.03
Создание компонента





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский