GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
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
13
void
COM_begin_scaled_raster
(
int
mask,
int
src[2][2],
int
dst[2][2])
14
{
15
if
(
driver
->
Begin_scaled_raster
)
16
(*
driver
->
Begin_scaled_raster
) (mask, src, dst);
17
}
18
19
int
COM_scaled_raster
(
int
n,
int
row,
20
const
unsigned
char
*red,
const
unsigned
char
*grn,
21
const
unsigned
char
*blu,
const
unsigned
char
*nul)
22
{
23
if
(
driver
->
Scaled_raster
)
24
return
(*
driver
->
Scaled_raster
) (n, row, red, grn, blu, nul);
25
26
return
-1;
27
}
28
29
void
COM_end_scaled_raster
(
void
)
30
{
31
if
(
driver
->
End_scaled_raster
)
32
(*
driver
->
End_scaled_raster
) ();
33
}
lib
driver
Raster.c
Generated on Sun Sep 9 2012 18:55:34 for GRASS Programmer's Manual by
1.8.1.2