Vampyre Imaging Library Forum

Imaging Category => Help & Questions => Topic started by: mar_je on 14 April 2009, 17:36:42

Title: How to draw... text
Post by: mar_je 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.  ???
Title: Re: How to draw... text
Post by: COeXe 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.
Title: Re: How to draw... text
Post by: mar_je on 14 April 2009, 18:16:33
But there's no transparency  :(
Title: Re: How to draw... text
Post by: Galfar 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.