Saves a GdPicture image to a stream.
public GdPictureStatus SaveAsStream( int ImageID, ref Stream Stream, DocumentFormat ImageFormat, int EncoderParameter );
Public Function SaveAsStream( ByVal ImageID As Integer, ByRef Stream As Stream, ByVal ImageFormat As DocumentFormat, ByVal EncoderParameter As Integer ) As GdPictureStatus
|
Parameters |
Description |
|
ImageID |
GdPicture Image Identifier. |
|
Stream |
Output parameter. a GdPicture image data saved to a stream. |
|
ImageFormat |
A member of the DocumentFormat enumeration. Currently supported format are: - DocumentFormatBMP, - DocumentFormatJPEG, - DocumentFormatPNG, - DocumentFormatTIFF (single page & editable multipage tiff image), - DocumentFormatGIF. |
|
EncoderParameter |
Compression or encoding quality to use. - For JPEG format defines the quality between 1 (lower) and 100 (higher). - For TIFF format defines the compression scheme to be used: 6 for None, 5 for RLE, 4 for CCITT4, 3 for CCITT3, 2 for LZW and 65536 for automatic compression adjustment (recommended !). - Use 0 for other image format. |
A member of the GdPictureStatus enumeration.
Saving an image to a System.IO.Stream
Dim ImageID As Integer = oGdPictureImaging.CreateGdPictureImageFromFile("test.tif") Dim MyStream As System.IO.Stream = Nothing oGdPictureImaging.SaveAsStream(ImageID, MyStream, DocumentFormat.DocumentFormatJPEG, 75)
|
What do you think about this topic? Send feedback!
|
|
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.
|