ShUr1k3n
December 6th, 2006, 15:02
Hi guys,
how can i clear an Image with full transparency pixels?
The function is:
void clearImage(Color color, Image* image)
{
int i;
int size = image->textureWidth * image->textureHeight;
Color* data = image->data;
for (i = 0; i < size; i++, data++) *data = color;
}
i also try to use this -> 0xff000000 as a 1st parameter (color). But no luck at all. Just a full black "layer".
Any suggestion?
how can i clear an Image with full transparency pixels?
The function is:
void clearImage(Color color, Image* image)
{
int i;
int size = image->textureWidth * image->textureHeight;
Color* data = image->data;
for (i = 0; i < size; i++, data++) *data = color;
}
i also try to use this -> 0xff000000 as a 1st parameter (color). But no luck at all. Just a full black "layer".
Any suggestion?