Transparent bitmap not transparent with GDI+
Posted: 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:
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;