Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / C++ [игнор отключен] [закрыт для гостей] / Как для функции StretchBlt высиавить условные единицы пикселями? / 4 сообщений из 4, страница 1 из 1
07.10.2004, 16:23
    #32728361
tors
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Как для функции StretchBlt высиавить условные единицы пикселями?
Как для функции StretchBlt высиавить условные единицы пикселями?
...
Рейтинг: 0 / 0
07.10.2004, 16:55
    #32728468
JibSkeart
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Как для функции StretchBlt высиавить условные единицы пикселями?
torsКак для функции StretchBlt высиавить условные единицы пикселями?

Всмусле ?!
...
Рейтинг: 0 / 0
07.10.2004, 17:10
    #32728506
tors
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Как для функции StretchBlt высиавить условные единицы пикселями?
The StretchBlt function copies a bitmap from a source rectangle into a destination rectangle, stretching or compressing the bitmap to fit the dimensions of the destination rectangle, if necessary. Windows stretches or compresses the bitmap according to the stretching mode currently set in the destination device context.

BOOL StretchBlt(

HDC hdcDest, // handle of destination device context
int nXOriginDest, // x-coordinate of upper-left corner of dest. rect.
int nYOriginDest, // y-coordinate of upper-left corner of dest. rect.
int nWidthDest, // width of destination rectangle
int nHeightDest, // height of destination rectangle
HDC hdcSrc, // handle of source device context
int nXOriginSrc, // x-coordinate of upper-left corner of source rectangle
int nYOriginSrc, // y-coordinate of upper-left corner of source rectangle
int nWidthSrc, // width of source rectangle
int nHeightSrc, // height of source rectangle
DWORD dwRop // raster operation code
);


Parameters

hdcDest

Identifies the destination device context.

nXOriginDest

Specifies the x-coordinate, in logical units, of the upper-left corner of the destination rectangle.

Logical units Поумолчанию - это пиксели? Помоему нет
...
Рейтинг: 0 / 0
07.10.2004, 17:39
    #32728573
Ой Вэй
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Как для функции StretchBlt высиавить условные единицы пикселями?
Чтобы один logical unit для hdc равнялся одному пикселю,
SetMapMode(hdc,MM_TEXT);
...
Рейтинг: 0 / 0
Форумы / C++ [игнор отключен] [закрыт для гостей] / Как для функции StretchBlt высиавить условные единицы пикселями? / 4 сообщений из 4, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]