Function TWPMMInsertTextContents.LoadImageFromFile(FileName:string; w:Integer; h:Integer) : Boolean
Unit: WPRTEEdit
Class: WPRTEEdit.TWPMMInsertTextContents
Parameters
-
FileName:string w:Integer h:Integer
Returns
The type of the result value is Boolean.
Description
Insert an image into this field. If w or h is specified (greater 0) the image will be scaled to match the not exceed this values measured in twips. If there is already an object in this field it will be reused and scaled. Use -1 to use the existing width and height or the physical size if no image was loaded. Use 0 to always use the physical size.WPTools 8: Set w and h as negative values (smaller than -1!) to set a minimum size