Главная страница
    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.55 MB
Время: 0.035 c
14-5864
Evgeny
2003-02-13 13:36
2003.03.03
Файл CGI


3-5455
mate
2003-02-13 15:43
2003.03.03
Номер записи


3-5407
boa
2003-02-12 08:55
2003.03.03
Закрытие сессии по IdleTime


3-5400
me2
2003-02-12 12:27
2003.03.03
Не происходит обновление таблицы после удаления записи


6-5701
LeReve
2003-01-11 15:23
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
Английский Французский Немецкий Итальянский Португальский Русский Испанский