Hide

SftMask/OCX 7.0 - ActiveX Masked Edit Control

Display
Print

SetColorSample Method, SftPictureObject Object

Defines the picture object as a color sample.

Syntax

VB.NETobject.SetColorSample(ByVal SampleColor As UInteger, ByVal FrameColor As UInteger)
VBobject.SetColorSample(ByVal SampleColor As OLE_COLOR, ByVal FrameColor As OLE_COLOR)
C#.NETvoid object.SetColorSample(uint SampleColor, uint FrameColor);
VC++HRESULT object->SetColorSample(OLE_COLOR SampleColor, OLE_COLOR FrameColor);
CHRESULT object->raw_SetColorSample(OLE_COLOR SampleColor, OLE_COLOR FrameColor);

object

A SftPictureObject object.

SampleColor

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

FrameColor

Defines the border color. For information about color properties, please visit the applicable section "Using SftMask/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


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.