Transparent bitmap not transparent with GDI+

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Collinor
Newbie
Newbie
Posts: 12
Joined: Wed Oct 16, 2013 12:00 am

Transparent bitmap not transparent with GDI+

Post by Collinor » Thu Jul 24, 2014 6:26 am

In TeeChart 2014 of May, 12, 2014, transparent bitmaps are not drawn transparently with GDI+.
Therefore, I changed TeeGDIPlus.pas, function TGDIPlusCanvas.Draw, in the following way:

Code: Select all

procedure TGDIPlusCanvas.Draw(X,Y:Integer; const AGraphic:TGraphic);
...
var tmpB : TBitmap;
begin
  if AGraphic is TBitmap then
  begin
//********* Collinor *************
    if AGraphic.Transparent then
    begin
      tmpB:=TranspBitmap(AGraphic,X,Y);
      DoDraw(tmpB);
      tmpB.Free;
    end
    else
//Collinor *************
     DoDraw(TBitmap(AGraphic))
  end
  else
...
end;

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Transparent bitmap not transparent with GDI+

Post by Sandra » Thu Jul 24, 2014 12:38 pm

Hello Collinor,

Many thanks for your fix. We will review it for inclusion in our source code for future maintenance releases.

Thanks in advance,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply