http://bugs.winehq.org/show_bug.cgi?id=13156
Summary: ETO_OPAQUE and clear style are not transparent on a bitmap Product: Wine Version: 1.0-rc1 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdi32 AssignedTo: wine-bugs@winehq.org ReportedBy: heiko_tietze@web.de
I paint some text on a bitmap using
Canvas.TextFlags:=ETO_OPAQUE; Canvas.Brush.Style:=bsClear; TextOut(...
resulting in a black background around the intended transparent text.
http://bugs.winehq.org/show_bug.cgi?id=13156
--- Comment #1 from Lei Zhang thestig@google.com 2008-05-12 15:48:25 --- Can you attach a test program? (preferably with source)
http://bugs.winehq.org/show_bug.cgi?id=13156
--- Comment #2 from Heiko Tietze heiko_tietze@web.de 2008-05-13 02:32:10 --- Created an attachment (id=12998) --> (http://bugs.winehq.org/attachment.cgi?id=12998) simple test program
procedure TForm1.Button1Click(Sender: TObject); var bmp:TBitmap; begin bmp:=TBitmap.Create; with bmp do try Width:=75; Height:=100; with Canvas do begin //background Brush.Style:=bsSolid; Brush.Color:=clYellow; FillRect(ClientRect); //foreground TextFlags:=ETO_OPAQUE; {ETO_OPAQUE The text is drawn with an opaque background color. Using this flag improves performance but does not allow images behind the text rectangle to show.} Brush.Style:=bsClear; Font.Color:=clBlack; Font.Size:=72; TextOut(1,1,'A'); end; Form1.Canvas.Draw(10,10,bmp); finally Free; end; end;
http://bugs.winehq.org/show_bug.cgi?id=13156
--- Comment #3 from Heiko Tietze heiko_tietze@web.de 2008-05-13 02:32:41 --- (In reply to comment #1)
Can you attach a test program? (preferably with source)
http://sourceforge.net/projects/scrabble
Sourcecode is extensive and written in Delphi. I wrote some test code but cannnot test it under Linux.
http://bugs.winehq.org/show_bug.cgi?id=13156
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
http://bugs.winehq.org/show_bug.cgi?id=13156
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #4 from Austin English austinenglish@gmail.com 2008-11-12 14:27:36 --- Is this still an issue in current (1.1.8 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=13156
--- Comment #5 from Heiko Tietze heiko_tietze@web.de 2008-11-13 02:28:07 --- It is still an issue with release 1.1.8. Just have a look on my simple test program.
http://bugs.winehq.org/show_bug.cgi?id=13156
Peter-Jan Roes PeterJanRoes@chartasoftware.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |PeterJanRoes@chartasoftware | |.com
--- Comment #6 from Peter-Jan Roes PeterJanRoes@chartasoftware.com 2009-09-10 13:20:01 --- It looks like I have the same problem but instead I call the Windows API directly instead of using the Delphi wrappers. For me the following two operations create inconsistent results on Windows and Wine:
* SetBkMode(DeviceContext, TRANSPARENT); * ExtTextOut(DeviceContext, X, Y, ETO_OPAQUE, nil, Text, Length(Text), nil);
On Windows text is rendered with a transparent background and on Wine text is rendered using an opaque background. It seems like in Windows SetBkMode overrides the ETO_OPAQUE parameter and on Wine it is the other way around.
http://bugs.winehq.org/show_bug.cgi?id=13156
Ken Sharp kennybobs@o2.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Alias|Transparency |
http://bugs.winehq.org/show_bug.cgi?id=13156
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW CC| |00cpxxx@gmail.com Ever Confirmed|0 |1
--- Comment #7 from Bruno Jesus 00cpxxx@gmail.com 2011-10-02 11:41:50 CDT --- I can confirm this issue in git (wine-1.3.29-121-gfdda702).
http://bugs.winehq.org/show_bug.cgi?id=13156
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |32057bf1328908aea8709d3a832 | |cb1e0792e58ee Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from Alexandre Julliard julliard@winehq.org 2012-02-21 14:28:25 CST --- Fixed by 32057bf1328908aea8709d3a832cb1e0792e58ee.
http://bugs.winehq.org/show_bug.cgi?id=13156
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2012-02-24 12:48:31 CST --- Closing bugs fixed in 1.4-rc5.