Hide

SftTabs/OCX 6.5 - Tab Control for VB6

Display
Print

SftTabs.LoadGDIPlusImageFromResource Method

Loads a GDI+ image from a resource.

Syntax

VBpGDIPlusImage = object.LoadGDIPlusImageFromResource(ByVal ResourceHandle As LONG_PTR, ByVal ResourceType As String, ByVal ResourceName As String) As LONG_PTR

object

A SftTabs object.

ResourceHandle

The instance handle of the application or DLL containing the resource.

ResourceType

The resource type. Can be a string or an identifier using the MAKEINTRESOURCE macro.

ResourceName

The resource name. Can be a string or an identifier using the MAKEINTRESOURCE macro.

pGDIPlusImage

Returns a Gdiplus::Image pointer or 0/Nothing if the function failed.

Comments

The LoadGDIPlusImageFromResource method loads a GDI+ image from a resource.

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).

See Also SftTabs Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.