GRASS GIS 8 Programmer's Manual 8.3.2(2024)-exported
Loading...
Searching...
No Matches
driver/raster.c
Go to the documentation of this file.
1#include <stdio.h>
2#include <stdlib.h>
3#include <grass/gis.h>
4#include "driver.h"
5#include "driverlib.h"
6
7/******************************************************************************
8 * These routines support the drawing of multi-band images on the graphics
9 * device.
10 ******************************************************************************
11 */
12
13void COM_begin_raster(int mask, int src[2][2], double dst[2][2])
14{
16 (*driver->Begin_raster)(mask, src, dst);
17}
18
19int COM_raster(int n, int row, const unsigned char *red,
20 const unsigned char *grn, const unsigned char *blu,
21 const unsigned char *nul)
22{
23 if (driver->Raster)
24 return (*driver->Raster)(n, row, red, grn, blu, nul);
25
26 return -1;
27}
28
30{
31 if (driver->End_raster)
32 (*driver->End_raster)();
33}
int COM_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
void COM_begin_raster(int mask, int src[2][2], double dst[2][2])
void COM_end_raster(void)
int(* Raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition driver.h:32
void(* End_raster)(void)
Definition driver.h:34
void(* Begin_raster)(int, int[2][2], double[2][2])
Definition driver.h:31