Image.createImage Method [AX 2012]
Creates an empty bitmap image with the width, height, and color depth as specified by the parameters.
The following example creates an image with a height and width of 16 pixels, and a color depth of 32 bits per pixel.
int i;
int j;
Image image;
image.createImage(
Imagelist::smallIconWidth(),
Imagelist::smallIconHeight(),
32);
for (i=0; i < Imagelist::smallIconWidth(); i++)
{
for (j=0; j < Imagelist::smallIconHeight(); j++)
{
if (i >= Imagelist::smallIconWidth()-2)
{
image.setPixel(i, j, WinAPI::RGB2int(0, 255, 255));
}
else
{
image.setPixel(i, j, WinAPI::imageTransparentColor());
}
}
}
Community Additions
ADD
Show: