Metoda THotPDF.DecodeLoadedImageRegion

Decodifică un dreptunghi exact, în coordonate sursă, dintr-un stream XObject de imagine încărcat, într-un TBitmap deținut de apelant

Declarație

function DecodeLoadedImageRegion(AImageStream: THPDFStreamObject;
  RegionLeft, RegionTop, RegionRight, RegionBottom: Integer): TBitmap;

Unitate

HPDFDoc

Parametri

NumeScop
AImageStreamLoaded image XObject stream to decode
RegionLeftInclusive left source coordinate
RegionTopInclusive top source coordinate
RegionRightExclusive right source coordinate
RegionBottomExclusive bottom source coordinate

Valoare de întoarcere

Returnează un bitmap nou alocat, care conține regiunea nevidă ajustată la limite, sau nil când imaginea ori geometria solicitată nu poate fi decodată

Note de utilizare

API-uri asociate