AddModernImageFromString

Image handling, Modern image codecs, Memory input

תיאור

Adds AVIF, HEIF, HEIC, or JPEG XL binary data held in an AnsiString

תחביר

Function TPDFlib.AddModernImageFromString(
  Const Source: AnsiString;
  Options: Integer= 8): Integer;

פרמטרים

SourceComplete binary source image
OptionsPNG-compatible import mode, defaulting to 8 for image, alpha, ICC, and high-bit-depth retention

ערכים מוחזרים

מחזיר את ה-ImageID החדש או 0 עבור נתונים ריקים, לא נתמכים או שאינם ניתנים לפענוח

הערות

The method copies the source into a seekable memory stream and otherwise uses the same path as AddModernImageFromStream

ראה גם

AddModernImageFromFile, AddModernImageFromStream, ModernImageCodecAvailable