PDFium Delphi Component Docs

Image Proprietà

Componente: TPdf  ·  Unità: PDFium
Proprietà indicizzata — restituisce un oggetto pagina immagine sulla pagina corrente, handle + bbox + profondità bit + spazio colore

Sintassi

property Image[Index: Integer]: TPdfImage; // read only

Descrizione

Proprietà indicizzata in sola lettura che restituisce un oggetto immagine decodificato della pagina corrente (Width, Height, Data, RawData, Filters, HorizontalDpi, VerticalDpi, BitsPerPixel, ColorSpace, MarkedContentId e IccProfile)

Richiede Active a True. Passare un indice immagine a base zero in 0 .. ImageCount - 1

Il record TPdfImage restituito è uno snapshot di proprietà del chiamante dei dati e dei metadati dell'immagine al momento della chiamata

Parametri

IndexIndice a base zero nell'intervallo 0 .. ImageCount - 1

Osservazioni

Esempio

var
  I: Integer;
begin
  if not Pdf1.Active then Exit;
  for I := 0 to Pdf1.ImageCount - 1 do
  begin
    // inspect Pdf1.Image[I]
    Memo1.Lines.Add(IntToStr(I));
  end;
end;

Vedi anche

ImageCount, BitmapCount, ObjectHandle