Loads an image from a resource as a GDI+ image.
| C# | void object.LoadImageFromResource(int ResourceHandle, string ResourceType, string ResourceName); |
| VB.NET | object.LoadImageFromResource(ByVal ResourceHandle As Integer, ByVal ResourceType As String, ByVal ResourceName As String) |
| C++ | 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.
The resource data is loaded using the GDI+ function Gdiplus::Image::FromStream(), so the resource can contain any image format supported by GDI+.
The image object is owned by the control and will be deleted when it is no longer used.
See Also SftPictureObject Object | Object Hierarchy