|
|
|
SftPictureObject.LoadImageFromResource Method |
Loads an image from a resource as a GDI+ image.
Syntax
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); |
||
Delphi |
procedure object.LoadImageFromResource(ResourceHandle : Pointer, ResourceType : WideString, ResourceName : WideString); |
object
A SftPictureObject 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.
Comments
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 tree control and will be deleted when it is no longer used.
See Also SftPictureObject Object | Object Hierarchy