SetHTMLImage

Text, HTML text, Image handling

Opis

Binds a loaded image to the src value used by HTML <img> elements

Syntax

Delphi

Function TPDFlib.SetHTMLImage(Const Source: WideString; ImageID: Integer): Integer;

ActiveX

Function PDFlib::SetHTMLImage(Source As String, ImageID As Long) As Long

DLL

int DLSetHTMLImage(int InstanceID, const wchar_t* Source, int ImageID);

Parametre

SourceNon-empty source name matched against the HTML src attribute
ImageIDImage handle owned by the selected document

Návratové hodnoty

Vráti 1, keď sú zdroj a obrázok platné pre vybraný dokument, inak 0

Remarks

Naviazanie nahradí skoršie mapovanie s tým istým zdrojom a počas HTML merania nikdy nevykonáva sieťové ani súborové I/OOpakované použitie HTML zaregistruje a nakreslí ten istý image XObject namiesto dekódovania ďalšieho obrázka

See also

ClearHTMLImages, DrawHTMLText, Appendix A