10-25-2006 12:27 PM
10-25-2006 04:08 PM
10-26-2006 05:18 AM
Thanks for the reply however I think I need to expand on what I am trying to do.
I have two picture indicators. One has a map loaded from a bmp file. The second is a dynamically changing picture of a radar screen the background color of which has been masked to be transparent. I have also set this second picture indicator to have a transparent background color using the color picker tool. If I overlap the radar picture image over the map picture indicator the areas of transparenct do not show the underlying opaque map indicator but show the undelying front panel background color.
I know I could write the map picture followed by the radar picture to one picture indicator but I am trying to reduce the amount of data needing to be sent everytime the front panel updates. I do not want to have to send the entire map data everytime. This is important if you are using remote panels.
Any ideas help wiould be appreciated.
Thanks
10-26-2006 07:24 AM
go through this thread.
http://forums.ni.com/ni/board/message?board.id=BreakPoint&message.id=14
10-26-2006 07:36 AM
10-26-2006 07:49 AM
10-26-2006 09:37 AM
10-26-2006 03:38 PM
10-26-2006 04:28 PM
Why not just use one picture control and use a alpha blend algorithm to overlap the picture then just write the results to the picture control, will simplify your code in the longrun if you want to do event handeling and resizing. Essentially a simple alpha blend would be to scale both photos to be of same size pixel arrays, then add an alpha channel for each array (or even pixel) then each new pixel will be 24bit RGB {(pixelA red)*(alpha)+(pixelB red)*(1-alpha)}, {(pixelA green)*(alpha)+(pixelB green)*(1-alpha)}, {(pixelA blue)*(alpha)+(pixelB blue)*(1-alpha)}. There are also more complex methods for blending pixels.
Paul