• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

How to draw... text

Started by mar_je, 14 April 2009, 17:36:42

Previous topic - Next topic

mar_je

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

TImagingBitmap comes with the property "Canvas" (TCanvas).
Like every other Canvas, this provides methods such as TextOut, TextRect and so on.

mar_je

But there's no transparency  :(

Galfar

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. 


SMF spam blocked by CleanTalk