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

Glossary Item Box

LoadPicture Method


See Also    DLL    Example

Applies To

fpSpread control

Description

Loads a picture from the specified file.

Syntax

C++

CPicture CSpreadSheet::LoadPicture(LPCTSTR FileName, long PictType);

Visual Basic

fpSpread.LoadPicture(ByVal FileName As String, ByVal PictType As PictureTypeConstants) As Picture

Parameters

The following parameters are available:

Parameter Description
FileName Path and file name of picture file to load
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 file.

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

LoadPictureBuffer, LoadResPicture, SavePicture, SavePictureBuffer methods

DLL Correspondence

SSLoadPicture function

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.