![]() Once I removed all developer express stuff, this problem goes away. It seems that cxLibrary (a developer express package) is breaking things. Note that the Png image list component has no such problems. Update: PngComponents look like they should work, but I got an Invalid Graphic format error when I try to load a png into the Png speedbutton. dfm should make the resulting forms smaller. DFM bitmap resource is essentially wasting space and making my form. To repeat, I am not asking how to solve the black-around-the-outside issue while still using the out-of-date TBitmap/TSpeedButton based VCL functionality, because it lacks modern PNG transparency functionality, I am asking about replacing it with something else that "just works".Īs a secondary drawback, converting a small. In short, this control would not use TBitmap, and would not use the color key transparency feature that is all TBitmap has. I want to know if there is another button control that will use alpha-blended PNGs loaded at designtime, and which does not convert the PNG resources into BMP format discarding the alpha channel and, causing the black border shown here. ![]() update: But the actual problem was that I had some external stuff (Developer Express components) that was rendering delphi's PNG support non-functional, TImage on the other hand, while it still TPicture, and can support PNG, was also affected by this Developer express bug.Ī question was already asked about here, and the answer shows how to use pre-blending so that transparency won't turn into black pixels. Delphi 2010's TSpeedButtons did not seem to really support PNG transparency properly, because the Glyph property uses a TBitmap internally, and TBitmap is for bitmaps, and doesn't support PNG transparency properly, and TSpeedButton.Glyph can't support transparency then. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |