Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] transparency

hey,

I don't know at all what code is being used to generate that image since
I no longer understand what's happened in GeoTools nor what uDig has
chosen to integrate from GeoTools. There is a slight chance that the
code on which you depend relates to the code we used for a project here.
In our case know of a similar bug, with a workaround that we have to
start with an image that has an alpha channel (RGBA). 

So maybe try a run starting with an image you know to be RGBA to see if
that solves your issue.

good luck,
--adrian




On Fri, 2009-01-23 at 10:17 -0800, Graham Davis wrote:
> Hi all,
> 
> I have a question about applying a transparency to a layer or coverage.  
> Basically I've developed a tool for geo-referencing an image onto a map 
> and warping it to match the map's CRS.  The process for warping the 
> image is to create a GridCoverage of the image from a derived CRS using 
> a transform, then use the Operations.resample() method to get the result 
> as a warped coverage.  The result is the image warped to fit the CRS of 
> the map.  My problem is that the edges of the result where it was 
> rotated are black.
> 
> I'm trying to figure out the best way to make these black areas 
> transparent.  Is there a setting that can achieve this when I do the 
> actual resampling?  Or do I need to apply some sort of style/setting on 
> the resulting coverage afterwards?  I don't know how to achieve either 
> or if there is another, better way.  Can someone point me in the right 
> direction?  Thanks,
> 



Back to the top