SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftMask/OCX 7.0 - Masked Edit Control
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftPrintPreview/DLL 2.0 - Print Preview Control (discontinued)
SftTree/DLL 7.5 - Tree Control
SftBox/OCX 5.0 - Combo Box Control
SftButton/OCX 3.0 - Button Control
SftDirectory 3.5 - File/Folder Control (discontinued)
SftMask/OCX 7.0 - Masked Edit Control
SftOptions 1.0 - Registry/INI Control (discontinued)
SftPrintPreview/OCX 1.0 - Print Preview Control (discontinued)
SftTabs/OCX 6.5 - Tab Control (VB6 only)
SftTree/OCX 7.5 - Tree Control
SftTabs/NET 6.0 - Tab Control (discontinued)
SftTree/NET 2.0 - Tree Control
Loads a GDI+ image from a file.
C
LPVOID SftTree_LoadGDIPlusImageFromFile(LPCTSTR lpszFilename);
lpszFilename
The path and name of the image file to load.
If successful, the return value is a Gdiplus::Image pointer or NULL if the function failed.
Loads a GDI+ image from a file.
This function is mainly intended for applications written using C. Because Gdiplus is C++ based, C applications don't readily have access to the Gdiplus::Image class and cannot use Bitmap::FromFile to load a GDI+ image. Using SftTree_LoadGDIPlusImageFromFile even C applications can use GDI+ images, without needing access to GDI+ itself.
The application retains ownership of the Gdiplus::Image pointer returned by SftTree_LoadGDIPlusImageFromFile. Once the image is no longer needed, it can be released using SftTree_FreeGDIPlusImageLoadedFromFile, which frees the associated memory.
LoadGDIPlusImageFromFile provides essentially the same service as the GDI+ Bitmap::FromFile function.
See Also C/C++ API | Categories | Notifications
