Spread 8.0 Documentation
SSSavePictureBuffer Function
Support Options
DLL Reference > DLL Functions > SSSavePictureBuffer Function

Glossary Item Box

SSSavePictureBuffer Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Saves a picture to a buffer.

Syntax

C

BOOL SSSavePictureBuffer(HANDLE hPict, HPALETTE hPal, short nSaveType, HGLOBAL *phGlobal, long *plSize);

C++

BOOL TSpread::SavePictureBuffer(HANDLE hPict, HPALETTE hPal, short nSaveType, HGLOBAL *phGlobal, long *plSize);

Parameters

The following parameters are available:

Parameter Description
hPict Picture to save to file
hPal Handle to palette to use with picture
(This value can be 0 if no palette is to be used.)
nSaveType Graphic type of file to save
Can be one of the following:
Constant Value Description
SS_PICTURE_TYPE_BMP 1 Windows Bitmap graphic
SS_PICTURE_TYPE_GIF 2 Graphics Interchange Format graphic
SS_PICTURE_TYPE_JPEG 3 Joint Photographic Experts Group graphic
SS_PICTURE_TYPE_PNG 4 Portable Network Graphic graphic
SS_PICTURE_TYPE_ICO 5 Windows Icon graphic
SS_PICTURE_TYPE_TIFF 6 Tagged Image File Format graphic
SS_PICTURE_TYPE_TGA 7 Truevision Targa graphic
SS_PICTURE_TYPE_PCX 8 Paintbrush graphics file graphic
SS_PICTURE_TYPE_WBMP 9 Wireless Bitmap Format graphic (converted to monochrome)
SS_PICTURE_TYPE_JP2 11 JPEG 2000 graphic
SS_PICTURE_TYPE_JPC 12 JPEG 2000 graphic
SS_PICTURE_TYPE_PGX 13 JPEG-2000 verification model graphic (converted to grayscale)
SS_PICTURE_TYPE_PNM 14 Portable graphics graphic
SS_PICTURE_TYPE_RAS 15 Sun Raster Image graphic
phGlobal GLOBALHANDLE
plSize Size of the buffer

Remarks

Call this function to save a picture to a buffer.

If you use this function with a picture cell type and there are multiple sheets, call the SSSetSheet function to specify the sheet for which you are calling this function.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Creating Picture Cells

SSLoadPicture, SSLoadPictureBuffer, SSLoadResPicture, SSSavePicture, SSSetSheet functions

ActiveX Correspondence

SavePictureBuffer method

Copyright © GrapeCity, inc. All rights reserved.