adspace
Answer Posted / Harikesh Gautam
To draw transparent text onto a TBitmap in Delphi, you can create a TCanvas from the bitmap and set its Transparent property to True. Then, use the TextOut function with an appropriate font color.nnExample:nnprocedure TForm1.DrawTransparentText(Bitmap: TBitmap; Text: string);nvarn Canvas: TCanvas;nbeginn Canvas := TCanvas.Create();n Canvas.Handle := Bitmap.CanvasHandle;n Canvas.Brush.Color := clNone;n Canvas.Font.Color := clBlack;n Canvas.TextOut(0, 0, Text);nend;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to Change the owner of a component at runtime ?
How to Get the time and date in Universal Time ?
How to Determine the last access time of a given file ?
How to Remove drives listed in a TDriveComboBox ?
How to Print in Delphi without using the TPrinter Unit ?
How to Change the default width/height of the editor?
How to Flush binary file from disk cache to disk ?
How can one prevent a TForm from being moved or resized?
How to Create resource files?
How to Retrieve the line number that a memo's cursor is on?
How to Retrieving the program that is associated with a given extension?
How to Save a QuickReport custom preview to text?