ThinkGeo.com    |     Documentation    |     Premium Support

Raster Properties

I can't seem to get some of the raster layer properties to do anything. The main one that I have tried is the transparency. I have tried a number between 0 and 100, 0 and 1, and 0 and 255 and can't seem to get it to work. Any help would be great. Also, does anyone know the ranges to use for the Red, Blue, Green component? (0-100)?



William, 



Welcome to the community, hope you enjoy the learning and sharing here! 



Thanks for pointing this out, the Red, Blue, Green Alpha, IsGrayscale and IsNegative property can not work well in version 3.0.199. This is a bug though and we have added it to our tracking system; we will review it before next release. Sorry for the IsNegative for now, 



The ranges to use for the Red, Blue, Green component is -255 to +255. Transparency is 0 ~ 255.



Thanks, 

ThinkGeo Support 

 



Do you know anything about the transparency? This is the big one that I need. Thank You!



I use  
  
  
 RasterLayer.Transparency=128; // [0-255] 
 Map.Refresh (); 
  
 
  
 and it works for me. 
  
 Patrick.

 


William,
 
Here are some screenshot in different Transparency value.

Transparency = 255



Transparency = 185


Transparency = 100



 We are working on this issue now and I will let you know if we have any results.


ThinkGeo Support



Patrick, 



Are you using RasterLayer or GdiPlusRasterLayer? 

There is do an issue about RasterLayer.Transparency property, it can not work. 

But the GdiPlusRasterSource.AlphaComponent works. 



Thanks, 

ThinkGeo Support