Hi,
I am trying to overlay a text onto an intensity graph. It'd be good if the text overlay was behaving as an extra layer like for the IMAQ image display indicators.
I've tried 2 methods.
1- I'm creating a text overlay and I'm placing it onto a picture control. The picture control is placed on top of the intensity graph with transparent borders (to pretend it doesn't exist).
The problem with this method is the background of the text overlay isn't see through. The other problem is I cannot pan and zoom in/out with the intensity graph tools since the picture control sits on top of the intensity graph.
Later on, I can see issues when trying to pan as the overlay must follow the pan move.
2. I am creating a text overlay using the picture control and converting it into an intensity graph (Convert picture to pixmap etc...). This second intensity graph only contains the text overlay. Then I am merging the two intensity graphs by pulling some 2d subset out of a the main intensity graph at a location corresponding to the mouse pointer, replacing it with the second intensity graph (the one containing the text overlay) and putting it back into it's original spot in the 2d array.
This is tremendiously slow (700ms for one text overlay) and the issue is now the overlay is merged with the intensity graph, it changes color when playing with the Z scale palette and grows with the zoom.
Any suggestions?
Thanks