ScroogeXHTML for Object Pascal 8.5
Loading...
Searching...
No Matches
TMemoryPictureAdapterDataURI Class Reference

In-memory picture adapter. More...

Inheritance diagram for TMemoryPictureAdapterDataURI:
IPictureAdapter

Public Member Functions

 TMemoryPictureAdapterDataURI (const Integer AMaxDataURISizeInKB=MAX_DATA_URI_SIZE_IN_KB)
 
 ~TMemoryPictureAdapterDataURI ()
 
string getPictureHTML ()
 This function returns the HTML code for the embedded picture.
 
 SetBase (const string ABase)
 The base URL for the generated picture URIs (only used if the picture is not encoded as a Data URIs).
 
 SetConverter (const IPictureConverter AConverter)
 Optionally set a picture converter.
 
<, > TObjectDictionary TEmbeddedPicture ()
 Return the map of the pictures in the current document.
 

Detailed Description

In-memory picture adapter.

Requirements:

  • this class requires Indy Sockets units for Base64 encoding.

Constructor & Destructor Documentation

◆ TMemoryPictureAdapterDataURI()

TMemoryPictureAdapterDataURI::TMemoryPictureAdapterDataURI ( const Integer AMaxDataURISizeInKB = MAX_DATA_URI_SIZE_IN_KB)

◆ ~TMemoryPictureAdapterDataURI()

TMemoryPictureAdapterDataURI::~TMemoryPictureAdapterDataURI ( )

Member Function Documentation

◆ getPictureHTML()

string TMemoryPictureAdapterDataURI::getPictureHTML ( )

This function returns the HTML code for the embedded picture.

Implements IPictureAdapter.

◆ SetBase()

TMemoryPictureAdapterDataURI::SetBase ( const string ABase)

The base URL for the generated picture URIs (only used if the picture is not encoded as a Data URIs).

Default:

Implements IPictureAdapter.

◆ SetConverter()

TMemoryPictureAdapterDataURI::SetConverter ( const IPictureConverter AConverter)

Optionally set a picture converter.

Implements IPictureAdapter.

◆ TEmbeddedPicture()

<, > TObjectDictionary TMemoryPictureAdapterDataURI::TEmbeddedPicture ( )

Return the map of the pictures in the current document.

Implements IPictureAdapter.