GRASS Programmer's Manual
6.4.2(2012)
|
00001 #include <stdio.h> 00002 #include <stdlib.h> 00003 #include <grass/gis.h> 00004 #include "driver.h" 00005 #include "driverlib.h" 00006 00007 /****************************************************************************** 00008 * These routines support the drawing of multi-band images on the graphics 00009 * device. 00010 ****************************************************************************** 00011 */ 00012 00013 void COM_begin_scaled_raster(int mask, int src[2][2], int dst[2][2]) 00014 { 00015 if (driver->Begin_scaled_raster) 00016 (*driver->Begin_scaled_raster) (mask, src, dst); 00017 } 00018 00019 int COM_scaled_raster(int n, int row, 00020 const unsigned char *red, const unsigned char *grn, 00021 const unsigned char *blu, const unsigned char *nul) 00022 { 00023 if (driver->Scaled_raster) 00024 return (*driver->Scaled_raster) (n, row, red, grn, blu, nul); 00025 00026 return -1; 00027 } 00028 00029 void COM_end_scaled_raster(void) 00030 { 00031 if (driver->End_scaled_raster) 00032 (*driver->End_scaled_raster) (); 00033 }