[Visual Basic] [ Long =
]imagekitcontrolname.CreateImage (Width As Long,
Height As Long, BitCount As Integer, Red As Integer, Green As
Integer, Blue As Integer)
[Visual C++] [
long = ]imagekitcontrolname.CreateImage(long
Width, long Height, short BitCount, short Red, short Green, short
Blue)
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.)