Page 1 of 1

Transparent bitmap not transparent with GDI+

Posted: Thu Jul 24, 2014 6:26 am
by 16567585
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;

Re: Transparent bitmap not transparent with GDI+

Posted: Thu Jul 24, 2014 12:38 pm
by 10050769
Hello Collinor,

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

Thanks in advance,