40 for (y = 0; y <
ca.height; y++) {
41 const unsigned int *row =
42 (
const unsigned int *)(
ca.grid + y *
ca.stride);
44 for (
x = 0;
x <
ca.width;
x++) {
45 unsigned int c = row[
x];
46 int a = (c >> 24) & 0xFF;
47 int r = (c >> 16) & 0xFF;
48 int g = (c >> 8) & 0xFF;
49 int b = (c >> 0) & 0xFF;
51 if (a > 0 && a < 0xFF) {
void cairo_write_ppm(void)
GRASS cairo display driver - header file.
void G_free(void *)
Free allocated memory.
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
char * G_store(const char *)
Copy string to allocated memory.
void output(const char *fmt,...)