SftButton/OCX 2.5

SftPictureObject.LoadImage Method

Softel vdm, Inc.

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

Syntax       

VB.NET

object.LoadImage(ByVal Filename As String, ByVal UseEmbeddedColorManagement As Boolean)

VB

object.LoadImage(ByVal Filename As String, ByVal UseEmbeddedColorManagement As Boolean)

C#.NET

void object.LoadImage(string Filename, bool UseEmbeddedColorManagement);

VC++

HRESULT object->LoadImageSftButton(_bstr_t Filename, VARIANT_BOOL UseEmbeddedColorManagement);

C

HRESULT object->raw_LoadImageSftButton(BSTR Filename, VARIANT_BOOL UseEmbeddedColorManagement);

Delphi

procedure object.LoadImage(Filename : WideString, UseEmbeddedColorManagement : WordBool);

object

A SftPictureObject object.

Filename

The name of the file containing a GDI+ image.

UseEmbeddedColorManagement

Defines whether the Image object applies color correction according to color management information that is embedded in the image file. Embedded information can include International Color Consortium (ICC) profiles, gamma values, and chromaticity information. True to enable color correction, False otherwise.

Comments

The LoadImage method loads an image from a file as a GDI+ image.

The image object is owned by the control and will be deleted when it is no longer used.

C/C++ Only: The LoadImage method is renamed to LoadImageSftButton by the #import statement used (see "Using SftButton/OCX with Visual C++ 6.0" or "Using SftButton/OCX with Visual Studio (Unmanaged C/C++)") to avoid a conflict with the Windows LoadImage macro.


Feedback / comments / error reports for this topic
© 2008 - Softel vdm, Inc. - www.softelvdm.com