LoadFromStream Method |
[Top] [Chapter] [Previous] [Next] |
Applies to Declaration function LoadFromStream(const FileExt: WideString; const Stream: IUnknown): WordBool; Description 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!
Example: 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! Category |