Loads an image from a resource as a GDI+ image.
| VB | object.LoadImageFromResource(ByVal ResourceHandle As LONG_PTR, ByVal ResourceType As String, ByVal ResourceName As String) |
object
ResourceHandle
The handle to an instance of the module 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.
The LoadImageFromResource method loads an image from a resource as a GDI+ image.
This function is identical to the GDI+ function Gdiplus::Bitmap::FromResource().
The image object is owned by the control and will be deleted when it is no longer used.
See Also SftPictureObject Object | Object Hierarchy