Jan 21, 2003 #1 BxyzB Programmer Jan 21, 2003 9 IL Hi ! I need to know how to copy paint on bitmap to canvas... Thanks !
Jan 22, 2003 #2 McMerfy Programmer Apr 18, 2002 186 RU Howdy there. Code: Canvas.Draw(0, 0, MyBitmap); --- markus Upvote 0 Downvote
Jan 22, 2003 Thread starter #3 BxyzB Programmer Jan 21, 2003 9 IL Oh no.... sorry , but i mean how to copy Canvas to bitmap... sorry... Upvote 0 Downvote
Jan 22, 2003 #4 sggaunt Programmer Jul 4, 2001 8,620 GB Drop on a TImage at least 10 by 10 and:- procedure TForm1.Button1Click(Sender: TObject); begin image1.Picture.SaveToFile('c:\temppic.bmp') end; procedure TForm1.Button2Click(Sender: TObject); begin image1.Canvas.MoveTo(0,0); image1.Canvas.lineto(10,10); end; steve creates a bitmap!! Upvote 0 Downvote
Drop on a TImage at least 10 by 10 and:- procedure TForm1.Button1Click(Sender: TObject); begin image1.Picture.SaveToFile('c:\temppic.bmp') end; procedure TForm1.Button2Click(Sender: TObject); begin image1.Canvas.MoveTo(0,0); image1.Canvas.lineto(10,10); end; steve creates a bitmap!!
Jan 29, 2003 #5 halfyawn Programmer Jan 3, 2003 3 CN var vbmp:TBitmap; vrect:TRect; begin vbmp:=TBitmap.Create; vbmp.Width:=500; vbmp.Height:=300; vrect:=RECT(0,0,vbmp.Width,vbmp.Height); vbmp.Canvas.CopyRect(vrect, Canvas,vrect); // ~~~~~~Source Canvas Upvote 0 Downvote
var vbmp:TBitmap; vrect:TRect; begin vbmp:=TBitmap.Create; vbmp.Width:=500; vbmp.Height:=300; vrect:=RECT(0,0,vbmp.Width,vbmp.Height); vbmp.Canvas.CopyRect(vrect, Canvas,vrect); // ~~~~~~Source Canvas