You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > Saving GdPicture Image > SaveAsString Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.SaveAsString Method

Saves a GdPicture image to a string.

C#
public String SaveAsString(
    int ImageID, 
    DocumentFormat ImageFormat, 
    int EncoderParameter
);
Visual Basic
Public Function SaveAsString(
    ByVal ImageID As Integer, 
    ByVal ImageFormat As DocumentFormat, 
    ByVal EncoderParameter As Integer
) As String
Parameters
Parameters 
Description 
ImageID 
GdPicture Image Identifier.  
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.  
Returns

a GdPicture image data saved to a string.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.