Loads an image from a resource as a GDI+ image.
| VB.NET | object.LoadImageFromResource(ByVal ResourceHandle As Integer, ByVal ResourceType As String, ByVal ResourceName As String) |
| VB | object.LoadImageFromResource(ByVal ResourceHandle As LONG_PTR, ByVal ResourceType As String, ByVal ResourceName As String) |
| C#.NET | void object.LoadImageFromResource(int ResourceHandle, string ResourceType, string ResourceName); |
| VC++ | HRESULT object->LoadImageFromResource(LONG_PTR ResourceHandle, _bstr_t ResourceType, _bstr_t ResourceName); |
| C | HRESULT object->raw_LoadImageFromResource(LONG_PTR ResourceHandle, BSTR ResourceType, BSTR ResourceName); |
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