Click or drag to resize

IMcRegionAccessSetToConstant Method

Sets an area of the image to a single value.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Sub SetToConstant ( 
	<OptionalAttribute> NewValue As Object,
	Optional lLeft As Integer = -1,
	Optional lTop As Integer = -1,
	Optional lRight As Integer = -1,
	Optional lBottom As Integer = -1
)

Parameters

NewValue (Optional)
Type: SystemObject
VARIANT : The new pixel value to be applied to the image data. Either a single floating point value or an array of values, one for each channel (which will be 1 if the ChannelToProcess property is other than -1). If only one value is given, then this value is applied to each channel (except for HSI and HSL types, see Notes). If not given, then the default value is 0.0.
lLeft (Optional)
Type: SystemInt32
long : Optional. Left side of the block. Must be between 0 and Right. The default value of -1 is the same as 0.
lTop (Optional)
Type: SystemInt32
long : Optional. Top side of the area. Must be between 0 and Bottom. The default value of -1 is the same as 0.
lRight (Optional)
Type: SystemInt32
long : Optional. Right side of the area. Must be between 0 and Right. The default value of -1 is the same as Right.
lBottom (Optional)
Type: SystemInt32
long : Optional. Bottom side of the area. Must be between 0 and Bottom. The default value of -1 is the same as Bottom.
Remarks
The coordinates are relative to the McRegionAccess ROI, not the image. The pixel values returned are in the requested color model, which may differ from the image's native color model. If different, the pixel values will be converted back into the native color model and the image will be modified.
See Also