Function TWPTextObj.LoadObjFromFile(FileName:string; DataCollection:TWPRTFDataCollectionBase) : Boolean

Unit: WPRTEDefs
Class: WPRTEDefs.TWPTextObj

Parameters

Returns

The type of the result value is Boolean.

Description

Loads the contents for a TWPObject - creates a new image.

It is also possible to change the width/height so it fits into previous rectangle:

var w, h : Integer;
w := obj.Width; h := obj.Height; obj.LoadObjFromFile( new_filename ); obj.ScaleWH(w, h);