Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

Re: alpha blending

Hi Brad,

Brad Buchsbaum wrote:
> 
> Hi,
> 
> Is it possible to take two FlatFields representing rgba values and combine
> them using alpha composition into a third FlatField?
> 
> e.g. f1(r, g, b, a) + f2(r, g, b, a) --> f3(r, g, b, a) ?
> 
> This could be computed manually, but is there Visad method for doing this
> sort of thing?

Perhaps the method (from visad.DataImpl):

public Data add(Data data)

would do the trick?

That is, f3 = (FlatField) f2.add( f1 );


Cheers,

Ugo


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: