Naktibalda
Programmer
This is more of a theoretical question. I have a program which displays complex vascular networks. The vessels are drawn as polygons in a TImage canvas. I would now like to load and display a bitmap image behind the canvas. When I try to load an image to the TImage.picture, all the objects on the canvas disappear. Additionally, if I load a picture and then draw my objects onto the canvas, the picture disappears. It seems that these two objects (the canvas and picture) override each other.
I've had some luck using a separate image for displaying the picture, which is located behind the image used for displaying the vessels, however there are problems with this approach as well. To use this method the image on which the vessels are drawn must be transparent. This causes all sorts of flickering when redrawing. I've tried all the normal remedies for flickering (double buffering etc) but nothing really works. When the image is opaque, there is no problem with flickering.
So my question is, can canvases and pictures be used in conjunction? And if not, what alternatives could I use to display polygons and bitmaps together?
Any advice is appreciated, thanks.
I've had some luck using a separate image for displaying the picture, which is located behind the image used for displaying the vessels, however there are problems with this approach as well. To use this method the image on which the vessels are drawn must be transparent. This causes all sorts of flickering when redrawing. I've tried all the normal remedies for flickering (double buffering etc) but nothing really works. When the image is opaque, there is no problem with flickering.
So my question is, can canvases and pictures be used in conjunction? And if not, what alternatives could I use to display polygons and bitmaps together?
Any advice is appreciated, thanks.