Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.03.27;
Скачать: CL | DM;

Вниз

Как привельно использовать GetDIBits???   Найти похожие ветки 

 
LeReve ©   (2003-01-30 18:09) [0]

Как привельно использовать GetDIBits???
желателен пример =)


 
MBo ©   (2003-01-30 18:12) [1]

procedure TForm1.Button2Click(Sender: TObject);
var b:tbitmap;
a:array[0..9,0..9] of TRGBQuad;
s:string;
info:tbitmapinfo;
i,j:integer;
begin
b:=tbitmap.create;
b.PixelFormat:=pf24bit;
b.width:=10;
b.height:=10;
b.Canvas.moveTo(0,0);
b.Canvas.LineTo(6,6);
with info.bmiHeader do begin
biWidth:=b.Width;
biHeight:=b.Height;
biSize:=SizeOf(TBITMAPINFOHEADER);
biCompression:=BI_RGB;
biBitCount:=32;
biPlanes:=1;
biSizeImage:=0;//((biWidth*biBitCount+31)div 32)*biHeight*4;
end;
GetDIBits(b.canvas.handle, B.Handle, 0,B.Height,@a,Info,DIB_RGB_COLORS);
for i:=0 to 9 do begin
s:="";
for j:=0 to 9 do s:=s+inttohex(a[i,j].rgbRed,2)+" ";
memo1.lines.add(s);
end;
image1.picture.assign(b);
b.free;
end;


 
LeReve ©   (2003-01-30 18:18) [2]

огромное спасибо!



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

Текущий архив: 2003.03.27;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.018 c
1-88022
malkolinge
2003-03-14 13:06
2003.03.27
Эмуляция мыши


3-87782
Roki
2003-03-11 14:41
2003.03.27
почему обновления только в одной строке?


1-88018
xGrey
2003-03-14 10:27
2003.03.27
Drag and Drop в TTreeView: отсутствие скроллинга.


1-87988
Kpok
2003-03-12 12:27
2003.03.27
Как проверить наличие файла на диске?


1-88070
SergeiMARC
2003-03-13 17:15
2003.03.27
Местоположение курсора