Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

LoadImageFromResource Method, SftPictureObject Object

Loads an image from a resource as a GDI+ image.

Syntax

VB.NETobject.LoadImageFromResource(ByVal ResourceHandle As Integer, ByVal ResourceType As String, ByVal ResourceName As String)
VBobject.LoadImageFromResource(ByVal ResourceHandle As LONG_PTR, ByVal ResourceType As String, ByVal ResourceName As String)
C#.NETvoid object.LoadImageFromResource(int ResourceHandle, string ResourceType, string ResourceName);
VC++HRESULT object->LoadImageFromResource(LONG_PTR ResourceHandle, _bstr_t ResourceType, _bstr_t ResourceName);
CHRESULT object->raw_LoadImageFromResource(LONG_PTR ResourceHandle, BSTR ResourceType, BSTR ResourceName);

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 control and will be deleted when it is no longer used.

See Also SftPictureObject Object | Object Hierarchy


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