Spread 8.0 Documentation
LoadPictureBuffer Method
Support Options
ActiveX Reference > ActiveX Methods > LoadPictureBuffer Method

Glossary Item Box

LoadPictureBuffer Method


See Also    DLL    Example

Applies To

fpSpread control

Description

Loads a picture from a buffer.

Syntax

C++

CPicture CSpreadSheet::LoadPictureBuffer(VARIANT* Buffer, VARIANT* Size, long PictType);

Visual Basic

fpSpread.LoadPictureBuffer(Buffer, Size, ByVal PictType as PictureTypeConstants) As Picture

Parameters

The following parameters are available:

Parameter Description
Buffer Buffer from which to load
Size Size of the buffer
PictType Graphic type of file to load
Can be one of the following:
Constant Value Description
PictureTypeUnknown 0 The type is not known. The control tries to load the picture using each of the following types, if possible.
PictureTypeBMP 1 Windows Bitmap graphic
PictureTypeGIF 2 Graphics Interchange Format graphic
PictureTypeJPEG 3 Joint Photographic Experts Group graphic
PictureTypePNG 4 Portable Network Graphic graphic
PictureTypeICO 5 Windows Icon graphic
PictureTypeTIFF 6 Tagged Image File Format graphic
PictureTypeTGA 7 Truevision Targa graphic
PictureTypePCX 8 Paintbrush graphics file graphic
PictureTypeWBMP 9 Wireless Bitmap Format graphic
PictureTypeWMF 10 Windows Meta File graphic (also loads enhanced metafiles (EMF))
PictureTypeJP2 11 JPEG 2000 graphic
PictureTypeJPC 12 JPEG 2000 graphic

Remarks

Use this method to load a picture from a buffer.

If you use this method with a picture cell type and there are multiple sheets, set the Sheet property to specify the sheet with which you want to work.

Return Type

Picture in bitmap format

See Also

Creating Picture Cells

Sheet property

LoadPicture, LoadResPicture, SavePicture, SavePictureBuffer methods

DLL Correspondence

SSLoadPictureBuffer function

Copyright © GrapeCity, inc. All rights reserved.