vb6有相应于delphi的TBitmap这样的东西吗?
比如说这几句,在VB6中怎么处理?beginbit.Canvas.Brush.Color:=clBlack;bit.Canvas.FillRect(Bounds(0,0,...
比如说这几句,在VB6中怎么处理?
begin
bit.Canvas.Brush.Color := clBlack;
bit.Canvas.FillRect(Bounds(0, 0, bit.Width, bit.Height));
bit.Canvas.Pen.Color := clLime;
for i := 0 to Length(Data) - 1 do
begin
L := LoWord(Data[i]);
R := HiWord(Data[i]);
bit.Canvas.MoveTo(i, ch - Trunc(L/32768*ch));
bit.Canvas.LineTo(i, ch + Trunc(R/32768*ch));
end;
end; 展开
begin
bit.Canvas.Brush.Color := clBlack;
bit.Canvas.FillRect(Bounds(0, 0, bit.Width, bit.Height));
bit.Canvas.Pen.Color := clLime;
for i := 0 to Length(Data) - 1 do
begin
L := LoWord(Data[i]);
R := HiWord(Data[i]);
bit.Canvas.MoveTo(i, ch - Trunc(L/32768*ch));
bit.Canvas.LineTo(i, ch + Trunc(R/32768*ch));
end;
end; 展开
展开全部
Dim picPicture As IPictureDisp
Set picPicture = stdole.StdFunctions.LoadPicture( _
"c:\1.bmp")
MsgBox "h:" & picPicture.Height & ", w:" & picPicture.Width
用这个吧。
Set picPicture = stdole.StdFunctions.LoadPicture( _
"c:\1.bmp")
MsgBox "h:" & picPicture.Height & ", w:" & picPicture.Width
用这个吧。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用API函数吧 bitblt
可以百度HI 我
可以百度HI 我
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
学习。。。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询