'Declaration
Public Overloads Function DisplayFromStream( _ ByVal Stream As Stream, _ ByVal FileName As String _ ) As GdPictureStatus
public GdPictureStatus DisplayFromStream( Stream Stream, string FileName )
public function DisplayFromStream( Stream: Stream; FileName: String ): GdPictureStatus;
public function DisplayFromStream( Stream : Stream, FileName : String ) : GdPictureStatus;
public: GdPictureStatus DisplayFromStream( Stream* Stream, string* FileName )
public: GdPictureStatus DisplayFromStream( Stream^ Stream, String^ FileName )
Parameters
- Stream
- A System.IO.Stream object. This object must be properly initialized before it can be sent into this method and it must be disposed of by the user as well.
- FileName
- The file name of the document, that is stored in the Stream parameter, for example myfile.tif. The toolkit will automatically recognize the document format based on the file name to be able to display the required file.
Return Value
A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.
We strongly recommend always checking this status first.