关于DIBSection的问题! ( 积分: 200 )

  • 主题发起人 主题发起人 schild
  • 开始时间 开始时间
S

schild

Unregistered / Unconfirmed
GUEST, unregistred user!
我在采集视频时得到了DIBSection,请问怎样才能得到位图数据的指针?
最好是存在PByteArray形的数组中。
我要显示在IMAGE中,我用了API函数
var bitinfo:PBitmapInfo;
begin
StretchDIBits(Image.Canvas.Handle,Image.Left,image.Top,Image.Width-Image.Left,image.Height-Image.Top, 0,0,DibSection.dsBm.bmWidth,DibSection.dsBmih.biHeight,
DibSection.dsBm.bmBits,bitinfo^,DIB_RGB_COLORS,SRCCOPY)
end;
可是不好用!请大家帮忙?
 
我在采集视频时得到了DIBSection,请问怎样才能得到位图数据的指针?
最好是存在PByteArray形的数组中。
我要显示在IMAGE中,我用了API函数
var bitinfo:PBitmapInfo;
begin
StretchDIBits(Image.Canvas.Handle,Image.Left,image.Top,Image.Width-Image.Left,image.Height-Image.Top, 0,0,DibSection.dsBm.bmWidth,DibSection.dsBmih.biHeight,
DibSection.dsBm.bmBits,bitinfo^,DIB_RGB_COLORS,SRCCOPY)
end;
可是不好用!请大家帮忙?
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
712
import
I
I
回复
0
查看
575
import
I
后退
顶部