Author Topic: How to draw... text  (Read 1123 times)

Offline mar_je

  • Imaging User
  • *
  • Posts: 4
    • View Profile
How to draw... text
« on: 14 April 2009, 17:36:42 »
Hi!

I have one little question. How i can draw text on transparent PNG (using ImgaingLib)? Possible there is no procedure in this libary.  ???

COeXe

  • Guest
Re: How to draw... text
« Reply #1 on: 14 April 2009, 17:47:19 »
TImagingBitmap comes with the property "Canvas" (TCanvas).
Like every other Canvas, this provides methods such as TextOut, TextRect and so on.

Offline mar_je

  • Imaging User
  • *
  • Posts: 4
    • View Profile
Re: How to draw... text
« Reply #2 on: 14 April 2009, 18:16:33 »
But there's no transparency  :(

Offline Galfar

  • Administrator
  • Imaging User
  • *****
  • Posts: 312
    • View Profile
    • Galfar's Homepage
Re: How to draw... text
« Reply #3 on: 15 April 2009, 02:56:55 »
If you use TCanvas for text output and want transparent text, you must set background mode to transparent. Using WinAPI function would look like this SetBkMode(Canvas.Handle, TRANSPARENT). There's probably some method/property in TCanvas that would do the same.