348 |
MASK_BIT = 1 |
MASK_BIT = 1 |
349 |
MASK_ALPHA = 2 |
MASK_ALPHA = 2 |
350 |
|
|
351 |
def __init__(self, title, filename, projection = None, visible = True): |
def __init__(self, title, filename, projection = None, |
352 |
|
visible = True, opacity = 1, masktype = MASK_BIT): |
353 |
"""Initialize the Raster Layer. |
"""Initialize the Raster Layer. |
354 |
|
|
355 |
title -- title for the layer. |
title -- title for the layer. |
372 |
|
|
373 |
self.bbox = -1 |
self.bbox = -1 |
374 |
|
|
375 |
self.mask_type = self.MASK_BIT |
self.mask_type = masktype |
376 |
self.opacity = 1 |
self.opacity = opacity |
377 |
|
|
378 |
self.image_info = None |
self.image_info = None |
379 |
|
|