Einzelnen Beitrag anzeigen

Benutzerbild von sk.Silvia
sk.Silvia

Registriert seit: 8. Feb 2006
Ort: Slovenia
90 Beiträge
 
Delphi 7 Personal
 
#1

Cannot Assign TBitmapCanvas to TBitmapCanvas

  Alt 26. Feb 2006, 19:45
hi alle

ich hab probleme mit diesen part fo code

Delphi-Quellcode:
  
  procedure TEngine.Show;
  var tmp:TBitmap;
      begin
      tmp:=TBitmap.Create;
      tmp.Canvas.Assign(Screen.Canvas);

      ShowScr.Canvas.Draw(-10,-10,tmp);
      ShowScr.Canvas.LineTo(50,50);
      end;
it creates a runtime error "Cannot Assign TBitmapCanvas to TBitmapCanvas" what is nonesence..isnt it??
i just only want to save the canvas into TBitmap (and dont want to make it over Pixels[], cuz its too slow)
  Mit Zitat antworten Zitat