This method creates a new raster image
[Visual Basic]   [ LONG_PTR = ]imagekitcontrolname.CreateImage (Width As Long, Height As Long, BitCount As Integer, Red As Integer, Green As Integer, Blue As Integer)
[Visual C++]     [ LONG_PTR = ]imagekitcontrolname.CreateImage(long Width, long Height, short BitCount, short Red, short Green, short Blue)
[VB.NET]   [ Integer(x86) or Long(x64) = ]imagekitcontrolname.CreateImage (Width As Integer, Height As Integer, BitCount As Short, Red As Short, Green As Short, Blue As Short)
[C#.NET]   [ int(x86) or long(x64) = ]imagekitcontrolname.CreateImage (int Width, int Height, short BitCount, short Red, short Green, short Blue)

* (x86) refers to the 32 bit version, (x64) refers to the 64 bit version.

Parameters

Name Explanation
Width The width of the created image (in pixels)
Height The height of the created image (in pixels)
BitCount The bitcount of the created image (1, 4, 8, 16, 24, 32, 40, 80)

* 4 represents 4 bit color, 40 is for 4 bit grayscale, 8 is for 8 bit color, and 80 is for 8 bit grayscale

Red The red value of the color in the created image (from 0 to 255)
Green The green value of the color in the created image (from 0 to 255)
Blue The blue value of the color in the created image (from 0 to 255)

Return Value

Returns the raster image's image handle if successful. Otherwise returns 0

Explanation

The CreateImage method creates a new raster image. Depending on the bit count of the created image, the RGB values set in the Red, Green, and Blue parameters may not be effective. In such cases, the nearest values will be assigned. (For images with bit counts higher than 24, the RGB values are effective as they are.)

Differences from ImageKit7/8

  This method's return value type has changed

 

The ImageKit10 ActiveX is a product created by Newtone Corporation