Вниз
Скачать: CL | DM;

twebbrowser Как получить ссылки на которые ведут картинки?   Найти похожие ветки 

← →
darkcoder   (2008-03-06 19:07) [0]

Как получить ссылки на которые ведут картинки?
<a href="нужно узнать что тут для данной картинки"><img src=""></a>
Код приведенные ниже пытался модифицировать, не вышло.

for i := 0 to EmbeddedWB1.OleObject.Document.Images.Length - 1 do
begin
    Document := Embeddedwb1.Document as IHtmlDocument2;
    // Retrieves the calculated width of the image.
   ImageWidth := Embeddedwb1.OleObject.Document.Images.Item(i).Width;
    // Retrieves the height of the image.
   ImageHeight := Embeddedwb1.OleObject.Document.Images.Item(i).Height;
    // Retrieves the file size of the image.
   ImageFileSize := (Document.Images.Item(i, 0) as IHTMLImgElement).FileSize;
    // Retrieves the entire URL that the browser uses to locate the image
   ImageHref := (Document.Images.Item(i, 0) as IHTMLImgElement).Href;
    // Retrieves a text alternative to the graphic.
   ImageTextAlternative := (Document.Images.Item(i, 0) as IHTMLImgElement).alt;
    // Show image information in a TListbox
   ListBox1.Items.Add(Format("%s : %d x %d Pixels; %s Bytes; %s",
      [ImageHref, ImageWidth, ImageHeight, ImageFileSize, ImageTextAlternative]));
  end;


← →
darkcoder   (2008-03-07 00:29) [1]

решено



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

Скачать: CL | DM;



Память: 0.44 MB
Время: 0.014 c
15-1224050613
tesseract
2008-10-15 10:03
2008.12.21
lazarus подновился. исправлена куча ошибок,


3-1211744065
j111
2008-05-25 23:34
2008.12.21
Копирование данных из одного набора данных в другой


2-1226240731
Fresh
2008-11-09 17:25
2008.12.21
Подлый PaintBox


2-1226565759
Нов_и_чок
2008-11-13 11:42
2008.12.21
RegisterServicesProcess in User32.dll


2-1226208105
Maksim
2008-11-09 08:21
2008.12.21
Как в поле memo1 вставить картинку?




   Наверх