SSLoadPicture Function
Applies To
fpSpread DLL control
Description
Loads a picture from the specified file.
Syntax
C
HANDLE SSLoadPicture(LPCTSTR lpszFileName, short nPictType);
C++
HANDLE TSpread::LoadPicture(LPCTSTR lpszFileName, short nPictType);
Parameters
The following parameters are available:
Parameter | Description | ||
---|---|---|---|
lpszFileName | Path and file name of picture file to load | ||
nPictType | Graphic type of file to load Can be one of the following: |
||
Constant | Value | Description | |
SS_PICTURE_TYPE_UNKNOWN | 0 | The type is not known. The control tries to load the picture using each of the following types, if possible. | |
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 | |
SS_PICTURE_TYPE_WMF | 10 | Windows Meta File graphic (also loads enhanced metafiles (EMF)) | |
SS_PICTURE_TYPE_JP2 | 11 | JPEG 2000 graphic | |
SS_PICTURE_TYPE_JPC | 12 | JPEG 2000 graphic |
Remarks
Call this function to load a picture file.
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
Handle to a picture in bitmap format
See Also
SSLoadPictureBuffer, SSLoadResPicture, SSSavePicture, SSSetSheet functions
ActiveX Correspondence
LoadPicture method