SftTree/OCX 7.0

SftPictureObject.SetColorSample Method

Softel vdm, Inc.

Defines the picture object as a color sample.

Syntax       

VB.NET

object.SetColorSample(ByVal SampleColor As UIntegerLanguage-specific information, ByVal FrameColor As UIntegerLanguage-specific information)

VB

object.SetColorSample(ByVal SampleColor As OLE_COLOR, ByVal FrameColor As OLE_COLOR)

C#.NET

void object.SetColorSample(uintLanguage-specific information SampleColor, uintLanguage-specific information FrameColor);

VC++

HRESULT object->SetColorSample(OLE_COLOR SampleColor, OLE_COLOR FrameColor);

C

HRESULT object->raw_SetColorSample(OLE_COLOR SampleColor, OLE_COLOR FrameColor);

Delphi

procedure object.SetColorSample(SampleColor : Cardinal, FrameColor : Cardinal);

object

A SftPictureObject object.

SampleColor

Defines the color sample.  For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".

FrameColor

Defines the border color.  For information about color properties, please visit the applicable section "Using SftTree/OCX with ...".

Comments

The SetColorSample method defines the picture object as a color sample.

The SftPictureObject.Type property is set to sftTypeColorSample.

The SftPictureObject.Height and SftPictureObject.Width properties should be used to define the requested image size.

The color sample can also be defined using the SftPictureObject.SampleColor and SftPictureObject.FrameColor properties.

See Also  SftPictureObject Object | Object Hierarchy


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