25
24
ImagingFill(Imaging im, const void* colour)
31
memcpy(&c, colour, im->pixelsize);
33
if (im->image32 && c != 0L) {
34
for (y = 0; y < im->ysize; y++)
35
for (x = 0; x < im->xsize; x++)
36
im->image32[y][x] = c;
28
if (im->type == IMAGING_TYPE_SPECIAL) {
30
ImagingAccess access = ImagingAccessNew(im);
32
for (y = 0; y < im->ysize; y++)
33
for (x = 0; x < im->xsize; x++)
34
access->put_pixel(im, x, y, colour);
35
ImagingAccessDelete(im, access);
38
for (y = 0; y < im->ysize; y++)
39
memset(im->image[y], 0, im->linesize);
38
unsigned char cc = (unsigned char) *(UINT8*) colour;
39
for (y = 0; y < im->ysize; y++)
40
memset(im->image[y], cc, im->linesize);
43
memcpy(&c, colour, im->pixelsize);
44
if (im->image32 && c != 0L) {
45
for (y = 0; y < im->ysize; y++)
46
for (x = 0; x < im->xsize; x++)
47
im->image32[y][x] = c;
49
unsigned char cc = (unsigned char) *(UINT8*) colour;
50
for (y = 0; y < im->ysize; y++)
51
memset(im->image[y], cc, im->linesize);