Code:
Procedure DomImg2Image (id: string; Wb: TWebBrowser; Img: TImage);
Var
Reaching: IHTMLControlRange;
The begin
Reaching:=((IHTMLDocument2 (wb) Document). The body as HTMLBody). CreateControlRange) as
IHTMLControlRange;
Reaching. The add (IHTMLDocument2 (wb) Document.) images. The item (id, EmptyParam) as
IHTMLControlElement);
Reaching the execCommand (' Copy ', False, 0);
Img. Picture. Assign (ClipBoard);
end;
The following two pages are discussed, but no results, I'd like to know what this is why???????
http://www.myexception.cn/delphi/226895.html
http://bbs.csdn.net/topics/390347997
CodePudding user response:
Top by oneself, hope the great god for helpCodePudding user response:
Alternatively can do, not necessarily using the clipboard, you can find pictures link, pictures can also directly downloadCodePudding user response: