/[thuban]/branches/WIP-pyshapelib-bramz/Thuban/UI/baserenderer.py
ViewVC logotype

Diff of /branches/WIP-pyshapelib-bramz/Thuban/UI/baserenderer.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2586 by jonathan, Fri Feb 18 14:54:17 2005 UTC revision 2587 by jonathan, Wed Mar 23 15:30:27 2005 UTC
# Line 488  class BaseRenderer: Line 488  class BaseRenderer:
488    
489          if img_data is not None:          if img_data is not None:
490              data = (width, height, img_data)              data = (width, height, img_data)
491              self.draw_raster_data(fmin[0]+offx, offy-fmax[1], data, "RAW")              self.draw_raster_data(layer, fmin[0]+offx, offy-fmax[1],
492                                      data, "RAW")
493              data = None              data = None
494    
495      def projected_raster_layer(self, layer, srcProj, dstProj, extents,      def projected_raster_layer(self, layer, srcProj, dstProj, extents,
# Line 522  class BaseRenderer: Line 523  class BaseRenderer:
523    
524          raise NotImplementedError          raise NotImplementedError
525    
526      def draw_raster_data(self, x, y, data, format="BMP"):      def draw_raster_data(self, layer, x, y, data, format="BMP"):
527          """Draw the raster image in data onto the DC with the top          """Draw the layer's raster image held in data onto the DC with the top
528          left corner at (x,y)          left corner at (x,y)
529    
530          The raster image data is a tuple of the form          The raster image data is a tuple of the form

Legend:
Removed from v.2586  
changed lines
  Added in v.2587

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26