SftButton/OCX 2.5

SftPictureObject.GetColorSample Method

Softel vdm, Inc.

Retrieves the picture object attributes defined as a color sample.

Syntax       

VB.NET

object.GetColorSample(ByRef SampleColor As UIntegerLanguage-specific information, ByRef FrameColor As UIntegerLanguage-specific information)

VB

object.GetColorSample(SampleColor As OLE_COLOR, FrameColor As OLE_COLOR)

C#.NET

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

VC++

HRESULT object->GetColorSample(OLE_COLOR* SampleColor, OLE_COLOR* FrameColor);

C

HRESULT object->raw_GetColorSample(OLE_COLOR* SampleColor, OLE_COLOR* FrameColor);

Delphi

procedure object.GetColorSample(out SampleColor : CardinalLanguage-specific information, out FrameColor : CardinalLanguage-specific information);

object

A SftPictureObject object.

SampleColor

Returns the current sample color.  For information about color properties, please visit the applicable section "Using SftButton/OCX with ...".

FrameColor

Returns the current border color.  For information about color properties, please visit the applicable section "Using SftButton/OCX with ...". 

Comments

The GetColorSample method retrieves the picture object attributes defined as a color sample.

If the current picture object is not a color sample (SftPictureObject.Type other than sftTypeColorSample), the returned color values are not valid.

The color sample is defined using the SftPictureObject.SampleColor, SftPictureObject.FrameColor, SftPictureObject.Width, SftPictureObject.Height properties or using the SftPictureObject.SetColorSample method.


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