ComponentOne FlexReport for WinForms
WriteImageToStream Method

C1.Win.C1Document.4 Assembly > C1.Win.C1Document Namespace > Utils Class : WriteImageToStream Method
Writes specified image to stream.
Syntax
'Declaration
 
Public Shared Function WriteImageToStream( _
   ByVal image As System.Drawing.Image, _
   ByVal imageFormat As System.Drawing.Imaging.ImageFormat, _
   ByVal stream As System.IO.Stream _
) As System.Drawing.Imaging.ImageFormat
public static System.Drawing.Imaging.ImageFormat WriteImageToStream( 
   System.Drawing.Image image,
   System.Drawing.Imaging.ImageFormat imageFormat,
   System.IO.Stream stream
)

Parameters

image
imageFormat
stream

Return Value

Returns null if error occurs during writing or System.Drawing.Imaging.ImageFormat which was actually used to save an image.
See Also

Reference

Utils Class
Utils Members