SftButton/OCX 2.5

SftPictureObject.Picture Property

Softel vdm, Inc.

Defines the image object using an OLE Picture object (IPictureDisp interface).

Syntax       

Get

VB.NET

pPictureDisp = object.Picture  As stdole.IPictureDispLanguage-specific information

VB

Set pPictureDisp = object.Picture  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information pPictureDisp = object.Picture;

VC++

IPictureDisp* pPictureDisp = object->GetPicture();

C

HRESULT object->get_Picture(IPictureDisp** pPictureDisp);

Delphi

pPictureDisp := object.Picture  : IPictureDispLanguage-specific information;

Put

VB.NET

object.let_Picture(ByVal pPictureDisp As stdole.IPictureDispLanguage-specific information)

VB

object.Picture = pPictureDisp  As IPictureDisp

C#.NET

void object.let_Picture(stdole.IPictureDispLanguage-specific information pPictureDisp);

VC++

void object->PutPicture(IPictureDisp* pPictureDisp);

C

HRESULT object->put_Picture(IPictureDisp* pPictureDisp);

Delphi

procedure object._Set_Picture(pPictureDisp : IPictureDispLanguage-specific information);

PutRef

VB.NET

object.Picture = pPictureDisp  As stdole.IPictureDispLanguage-specific information

VB

Set object.Picture = pPictureDisp  As IPictureDisp

C#.NET

stdole.IPictureDispLanguage-specific information object.Picture = pPictureDisp;

VC++

void object->PutRefPicture(IPictureDisp* pPictureDisp);

C

HRESULT object->putref_Picture(IPictureDisp* pPictureDisp);

Delphi

object.Picture := pPictureDisp  : IPictureDispLanguage-specific information;

object

A SftPictureObject object.

pPictureDisp

Defines the image object using an OLE Picture object (IPictureDisp interface). For information about picture properties, please visit the applicable section "Using SftButton/OCX with ...".

Comments

The Picture property defines the image object using an OLE Picture object (IPictureDisp interface).

Typically, .NET applications use the NETImageObject property to define an image, C and C++ applications use BitmapHandle or Image, VB6 and other COM applications use the Picture property.

The SftPictureObject.Type property is set to sftTypeIDispatch.  The SftPictureObject.ActualHeight and SftPictureObject.ActualWidth properties reflect the image size.


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