IMcImagePutPixel Method
|
|
Set a pixel value.
Namespace:
MediaCy.IQL.Engine
Assembly:
MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
SyntaxFunction PutPixel (
vPixel As Object,
x As Integer,
y As Integer,
Optional Frame As Integer = -2
) As Integer
Parameters
- vPixel
- Type: SystemObject
A VARIANT containing the new pixel value.
For gray scale images, this could be any simple integer or floating
point type. For color images, this is a SAFEARRAY containing three
values. - x
- Type: SystemInt32
The x-location of the pixel. 0 indicates a pixel along the
edge of the image. - y
- Type: SystemInt32
The y-location of the pixel. 0 indicates a pixel along the
first line of the image. - Frame (Optional)
- Type: SystemInt32
Return Value
Type:
Int32The number of
values set. One value set per channel (1 for gray scale images, 3 for
color images)
RemarksSee CreateRegionAccess for a more controlled way to set pixel values.
See Also