This method sets the RGB value and the palette number of a specified pixel in the Device Independent Bitmap (DIB). This method is equivalent to the SetDibPixel method but can be used in scripting languages that require variant types or when using 64 bit builds in VB.NET or C#.

[Visual Basic]   [ Boolean = ]imagekitcontrolname.Effect.SetDibPixelVariant(DibNo As Integer, x As Long, y As Long, PalNo As Integer, Red As Integer, Green As Integer, Blue As Integer)

Parameters

Name Explanation
DibNo The identification number of the DIB as retrieved from the StartDibAccessVariant method.
x, y The x,y coordinates of the specified pixel
PalNo The palette number of the specified pixel
Red The red component of the RGB value of the specified pixel
Green The green component of the RGB value of the specified pixel
Blue The blue component of the RGB value of the specified pixel

Return Value

Returns True (nonzero) if successful, otherwise returns False (0).

Explanation

The SetDibPixelVariant method sets the RGB values and palette number of the specified pixel in the Device Independent Bitmap (DIB). This method is equivalent to the SetDibPixel method but can be used in scripting languages that require variant types. The DibNo parameter value must be the same as that retrieved from the StartDibAccessVariant method. For 1, 4, and 8 bit images, the applicable values are set in the PalNo parameter. For 16, 24, and 32 bit images, the applicable values are set in the Red, Green, and Blue parameters

To access the DIB and manipulate pixel data, you must use the following methods as a group:
StartDibAccessVariant
      |
GetDibPixelVariant, SetDibPixelVariant
      |
EndDibAccessVariant

The ImageKit10 ActiveX is a product created by Newtone Corporation