26 input =
fopen(
ca.file_name,
"rb");
38 "expected: %dx%d got: %dx%d"),
55 G_fatal_error(
_(
"Cairo: input mask file has incorrect dimensions: "
56 "expected: %dx%d got: %dx%d"),
61 for (y = 0; y <
ca.height; y++) {
62 unsigned int *row = (
unsigned int *)(
ca.grid + y *
ca.stride);
64 for (
x = 0;
x <
ca.width;
x++) {
75 if (a > 0 && a < 0xFF) {
81 row[
x] = (a << 24) | (
r << 16) | (
g << 8) | (
b << 0);
void cairo_read_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.