#1 2010-08-07 18:36:20

Mohammed Nasman
Member
From: Palestine
Registered: 2010-07-05
Posts: 5
Website

Writing Transport text

Hi,

  I'm not sure if the "SynGdiPlus" is the write thing to use, but Can I use it to write a transparent text on the image?

mostly for JPG and PNG

Thank you for your great work.

Offline

#2 2010-08-07 21:21:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,132
Website

Re: Writing Transport text

Transparent text on an image?

You can do that by using the Canvas.TextOut method of a bitmap, and setting the brush to bsClear so that no background is painted.

Use SynGdiPlus if you want to load/save it as JPG, PNG or GIF.

Offline

#3 2010-08-08 10:25:58

Mohammed Nasman
Member
From: Palestine
Registered: 2010-07-05
Posts: 5
Website

Re: Writing Transport text

I was looking for more than just transparent text, it's like writing text with semi transparent or gradient text.

it's more than simple Canvas.Textout can do, something like GDI+ effects that used by .Net

Offline

#4 2010-08-08 11:07:25

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,132
Website

Re: Writing Transport text

OK so SynGDI plus may help you.

But there are a lot of GDI+ methods missing yet. I only coded what I needed for my purpose.

It's not difficult to continue adding methods to SynGDIPlus to have all GDI+ extended text drawing at hand.

Offline

Board footer

Powered by FluxBB