HeaderPane
Main
Hide
Share Link
Print

SampleColor Property, SftPictureObject Object

Defines the picture object as a color sample.

Syntax

Get

C#uint Clr = object.SampleColor;
VB.NETClr = object.SampleColor As UInteger
C++OLE_COLOR Clr = object->SampleColor;
OLE_COLOR Clr = object->GetSampleColor();
CHRESULT object->get_SampleColor(OLE_COLOR* Clr);
VBClr = object.SampleColor As OLE_COLOR

Put

C#uint object.SampleColor = Clr;
VB.NETobject.SampleColor = Clr As UInteger
C++OLE_COLOR object->SampleColor = Clr;
void object->PutSampleColor(OLE_COLOR Clr);
CHRESULT object->put_SampleColor(OLE_COLOR Clr);
VBobject.SampleColor = Clr As OLE_COLOR

object

A SftPictureObject object.

Clr

Defines the picture object as a color sample. For information about color properties, please visit the applicable section "Using SftMask/OCX with ...".

Comments

The SampleColor property 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 SftPictureObject.FrameColor property can be used to define the border color of the color sample.

See Also SftPictureObject Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.