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.
VB.NET | pGDIPlusImage = object.LoadGDIPlusImage(ByVal Filename As String, ByVal UseEmbeddedColorManagement As Boolean) As Integer |
VB | pGDIPlusImage = object.LoadGDIPlusImage(ByVal Filename As String, ByVal UseEmbeddedColorManagement As Boolean) As LONG_PTR |
C#.NET | int pGDIPlusImage = object.LoadGDIPlusImage(string Filename, bool UseEmbeddedColorManagement); |
VC++ | LONG_PTR pGDIPlusImage = object->LoadGDIPlusImage(_bstr_t Filename, VARIANT_BOOL UseEmbeddedColorManagement); |
C | HRESULT object->raw_LoadGDIPlusImage(BSTR Filename, VARIANT_BOOL UseEmbeddedColorManagement, LONG_PTR* pGDIPlusImage); |
object
Filename
Specifies the name of the file containing the image to be loaded.
UseEmbeddedColorManagement
Defines whether the new image object applies color correction according to color management information that is embedded in the image file. Embedded information can include International Color Consortium (ICC) profiles, gamma values, and chromaticity information. True specifies that color correction is enabled, and False specifies that color correction is not enabled.
pGDIPlusImage
Returns a Gdiplus::Image pointer or NULL/Nothing if the function failed.
The LoadGDIPlusImage method loads a GDI+ image from a file.
A GDI+ image created using LoadGDIPlusImage or LoadGDIPlusImageFromResource must be freed using DeleteGDIPlusImage (or the equivalent "delete Gdiplus::Image*", which is usually accessible to C++ applications only).
This method is mainly intended for applications written using a language that does not have direct access to GDI+ (such as VB6). Other languages usually have direct access to GDI+ (such as C++) or have other mechanisms (NETImageObject for .NET applications).
ItemIndex = .Items.Add("GDI+ Images") .Item(ItemIndex).Level = 1 .Cell(ItemIndex, 1).Text = "All GDI+ images are supported, like GIF, JPEG, Exif, PNG, TIFF and device-independent bitmaps (up to 64bpp) with semi-transparent and translucent areas." I = .Items.Add("PNG Sample with alpha-channel for translucent edges") .Item(I).Level = 2 Dim PicturePNG1 As LONG_PTR PicturePNG1 = SftTree1.LoadGDIPlusImage(App.Path + "\pic_warn_32.png", False) UpdateImages I, PicturePNG1, halignSftTreeRight I = .Items.Add("Another PNG Sample with alpha-channel for translucent edges") .Item(I).Level = 2 Dim PicturePNG2 As LONG_PTR PicturePNG2 = SftTree1.LoadGDIPlusImage(App.Path + "\pic_world_48.png", False) UpdateImages I, PicturePNG2, halignSftTreeRight
See Also SftTree Object | Object Hierarchy