超级难题:如何将TWebBrowser 里显示的页面转成图片格式? 我在做个web页预览的工具,需要在一个form中显示10个页面,所以必须将web页缩小,我想能不能将TWebBrowser 里显示的Web页转成图片格式,或者其它方式将Web页转成图片格式?或者有直接把web页变小的方法? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 很简单! 有 THANDLE 就行了 怎样把一个网页转换为图片:procedure TForm1.Button1Click(Sender: TObject); var ViewObject: IViewObject; sourceDrawRect: TRect; begin if EmbeddedWB1.Document <> nil then try EmbeddedWB1.Document.QueryInterface(IViewObject, ViewObject); if ViewObject <> nil then try sourceDrawRect := Rect(0, 0, Image1.Width, Image1.Height); ViewObject.Draw(DVASPECT_CONTENT, 1, nil, nil, Self.Handle, image1.Canvas.Handle, @sourceDrawRect, nil, nil, 0); finally ViewObject._Release; end; except end; end; 温度值在-10度……120度,用不同的颜色表示,分辨率为1度,如何处理,如果把TCOLOR的值均分好像不太好,至少-10度和10 读的颜色用肉眼分辨不出来! 怎么样调用Dll中的子窗体 关于释放的问题 quickReport问题,为什么生成的报表,只显示一行数据。 WinNT中如何提升进程权限,大侠请进 请问如何调试COM 当tab键在几个dbedit中移过后,自动反映运算要填在哪个procedure下 delphi几是中文版? TADOQuery.SQL.Add('中间有三个sum()函数就出错的问题 ') 双击一表,提示输入表中字段 姓名,让指针指向所输入的那条姓名的字段。怎么实现 老鱼,又出事了,快来…… 哪里有DICOM图像处理的实例下载? 高分求图象识别(如印章识别)的算法思想?
procedure TForm1.Button1Click(Sender: TObject);
var
ViewObject: IViewObject;
sourceDrawRect: TRect;
begin
if EmbeddedWB1.Document <> nil then
try
EmbeddedWB1.Document.QueryInterface(IViewObject, ViewObject);
if ViewObject <> nil then
try
sourceDrawRect := Rect(0, 0, Image1.Width, Image1.Height);
ViewObject.Draw(DVASPECT_CONTENT, 1, nil, nil, Self.Handle,
image1.Canvas.Handle, @sourceDrawRect, nil, nil, 0);
finally
ViewObject._Release;
end;
except
end;
end;
如何处理,
如果把TCOLOR的值均分好像不太好,至少-10度和10 读的颜色用肉眼分辨不出来!