Home » U++ Library support » RichText,QTF,RTF... » [BUG?] Black background in QTF embedded PNG-image
|
Re: [BUG?] Black background in QTF embedded PNG-image [message #14569 is a reply to message #14525] |
Mon, 03 March 2008 20:34 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
Mindtraveller wrote on Thu, 28 February 2008 19:09 | I've got StaticText control, which is working as some kind of labelled status indicator (picture+text).
Picture is PNG-image from .iml file, with alpha-channel.
So I write following code, and this picture is drawn on black background:
Am I doing something wrong, or it`s a bug?
|
"underdevelopment". Never counted with transparent Images yet.
Quick fix:
RichText/ParaPaint.cpp 141
Quote: |
Image RichObjectImageMaker::Make() const
{
ImageDraw iw(sz);
iw.DrawRect(sz, White);
object.Paint(iw, sz);
return iw;
}
|
(It is not 100% correct, we should use current paper instead, but that fix is more difficult).
Mirek
|
|
|
|
Goto Forum:
Current Time: Thu Mar 28 10:44:44 CET 2024
Total time taken to generate the page: 0.01057 seconds
|