SaveToStream and Transparency
Posted: Sun Feb 17, 2008 1:55 am
I can add a TTreeNode Shape
TTreeNodeShape.Image.Assign(SomeBitmap);
TTreeNodeShape.Image.Transparent:= true;
TTreeNodeShape.ImageAlignment:= iaCenter;
All is good , the image shows the background.
However if I
SaveTreeToStream(MyTree,strm)
or
SaveTreeToFile(MyTree,'C:\mytree')
and then reload the file or load it into a different TTree, the images loses the transparency and I see a white background around the images.
Any ideas?
TTreeNodeShape.Image.Assign(SomeBitmap);
TTreeNodeShape.Image.Transparent:= true;
TTreeNodeShape.ImageAlignment:= iaCenter;
All is good , the image shows the background.
However if I
SaveTreeToStream(MyTree,strm)
or
SaveTreeToFile(MyTree,'C:\mytree')
and then reload the file or load it into a different TTree, the images loses the transparency and I see a white background around the images.
Any ideas?