Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delphi to C#.net

Status
Not open for further replies.

apc2003

Programmer
Aug 29, 2003
54
GB
I have recently changed lanuages from Delphi to C#.net.

I used to use the following code in Delphi to create text within a bitmap to stop flickering when moving the text:

//DELPHI CODE
Buffer := TBitmap.create;
Buffer.Canvas.Brush.color := clblack;
Buffer.width := clientwidth;
Buffer.height := clientheight;

repeat
Buffer.canvas.font.color := $00FFA74F;
Buffer.canvas.brush.style := bsclear;
Buffer.canvas.font.size := 20;
Buffer.canvas.font.name := 'Arail';
Buffer.canvas.Font.style := [fsbold,fsitalic];
Buffer.canvas.textout(50,50,'Transparent TextOut!!');

Canvas.Draw(0,0,Buffer);

Applicaiton.ProcessMessages();
until Application.Terminated;

Could anyone help convert it into C#.net code as I have run into a few problems with it.

Regards...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top