Top.Mail.Ru
Мастера DELPHI, Delphi programming community Титульная страница Поиск, карта сайта Написать письмо 
| Новости | Поиск | FAQ | Статьи | Книги | Новости VCL |
| Форумы ЧАТ | Орешник | KOL и MCK |
Форумы -» Основная («Начинающим»)/ Базы / WinAPI / Компоненты / Сети / Media / Игры / Corba и COM / KOL / FreePascal / .Net / Прочее / RSDN.ORG

« предыдущая ветвь | форум | следующая ветвь »

глубина цвета в HBITMAP, созданной CreateCompatibleBitmap() [D5, Win2k]


1g0r ©   (2003-04-22 13:53:00) 

как узнать?

спасибо


Morfein   (2003-04-22 20:15:00) [1]


var
bmp : BITMAP;
hBmp : HBITMAP; // handle того созданного битмапа
bits_per_pixel : word; // искомое кол-во бит на пиксель

begin
GetObject(hBmp, SizeOf(BITMAP), @bmp);
bits_per_pixel:=bmp.bmBitsPixel;
end;


REA   (2003-04-22 14:42:00) [2]

GetDIBits
...
lpvBits
[out] Pointer to a buffer to receive the bitmap data. If this parameter is NULL, the function passes the dimensions and format of the bitmap to the BITMAPINFO structure pointed to by the lpbi parameter.
lpbi
[in/out] Pointer to a BITMAPINFO structure that specifies the desired format for the DIB data.
...
biBitCount
Specifies the number of bits-per-pixel.
и т.д.


1g0r   (2003-04-22 14:04:00) [3]

ух ты!!!!

MBo © < спасибо :)))


MBo   (2003-04-22 13:56:00) [4]

GetDeviceCaps для референсного контекста


Наверх

Титульная страница Поиск, карта сайта Написать письмо