several TImages, 1 hPalette -> problem
Posted on 1997-10-20
I use several TImages to display data. They all need the same colours, so I made 1 logical palette and 1 hPalette, which I assigned to the Picture.Bitmap.Palette property of all TImages. I use CopyRect to copy part of a memory bitmap to the TImages. This goes OK, unless I mirror the data in the CopyRect. (by passing for the source rect: Bounds(width-1, 0, -width, height-1)). Then the TImage stays black. If I give every TImage its own hPalette, the mirroring goes fine.
1- is what I try at all posiible, or do all TImages always need a unique hPalette?
2- if it is possible, what should I change to make it work?