/[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 2561 by jonathan, Fri Jan 28 15:54:00 2005 UTC revision 2562 by jonathan, Wed Feb 16 21:14:47 2005 UTC
# Line 485  class BaseRenderer: Line 485  class BaseRenderer:
485    
486          try:          try:
487              options = 0              options = 0
488              if layer.UseMask(): options = options | 1              options = options | layer.MaskType()
489    
490              project_params = (layer.GetImageFilename(), in_proj, out_proj,              project_params = (layer.GetImageFilename(), in_proj, out_proj,
491                                (xmin, ymin, xmax, ymax), "", (width, height),                                (xmin, ymin, xmax, ymax), "", (width, height),
# Line 507  class BaseRenderer: Line 507  class BaseRenderer:
507          left corner at (x,y)          left corner at (x,y)
508    
509          The raster image data is a tuple of the form          The raster image data is a tuple of the form
510              (width, height, (image_data, mask_data))              (width, height, (image_data, mask_data, alpha_data))
511                    
512          holding the image width, height, image data, and mask data.          holding the image width, height, image data, mask data, and alpha data.
513          mask_data may be None if a mask should not be used. If          mask_data may be None if a mask should not be used. alpha_data may
514            also be None. If both are not None mask overrides alpha. If
515          format is 'RAW' the data will be RGB values and the mask          format is 'RAW' the data will be RGB values and the mask
516          will be in XMB format. Otherwise, both kinds          will be in XMB format. Otherwise, both kinds
517          of data are assumed to be in the format specified in format.          of data are assumed to be in the format specified in format.

Legend:
Removed from v.2561  
changed lines
  Added in v.2562

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26