Technical Information

<< Click to Display Table of Contents >>

Navigation:  Programming > Objects > Images > C) Work with images >

Technical Information

In previous versions of WPTools embedded objects were stored by using a list of references. A tag, which was required to identify a reference, was stored in the TAttr record which was used parallel to the character.

 

WPTools Version 9 uses a similar method which is much more powerful and consumes less memory.

 

Each paragraph can have a CharObjectIndex array. If no objects are used, this array is not allocated.  The items in this array are the index values +1 in the FWPTextObjs array of the same paragraph.

 

If a character is an embedded object the entry in the corresponding CharObjectIndex item is set to value <> 0.  (Using this double reference makes it quicker to test whether a character is an object or not.)

 

To check if a character is an embedded object, please use the IsObject function of the TParagraph object.