|[Top] [Chapter] [Previous] [Next]|
function LoadFromStream(const FileExt: WideString; const Stream: IUnknown): WordBool;
This method loads the contents of this object from a IStream or IWPStream. This is method is used to load image data into image objects. .NET: The stream converter Stream2WPStream must be re-created for each load and save operation!
System.IO.Stream str = new System.IO.MemoryStream();
// ... load data into "str" ... and then load it into the object
wpdllint1.Memo.CurrObj.LoadFromStream("PNG", new WPDynamic.Stream2WPStream(str));
Note: When working with a placeholder object which embeds data into a PDF file (See InputEmbeddedData) this method updates the embedded data, not the image! In this case the file may be in RTF, C# and various other formats!