By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,368 Members | 1,296 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,368 IT Pros & Developers. It's quick & easy.

Render richtext - Problem with resolution

P: n/a

Im trying for 2 days to solve a problem but now Im on a point where all
ideas exhausted. Im writing a software to print out some cards containing
richtext and images.

To print the richtext im using an windows api call (Sendmessage
Because I have to print background images, the richtext background should be
transparent. Ive found no way to do this directly, so I tried to create a
temporary bitmap, render the richtext into it, eliminate all the whity
pixels and copy it to output. Works great on display but sucks on printer.

It seems that the windows api renders always with 96dpi into my graphic
object. This is to less for text and the text looks terrible. When Im
rendering directly to the printer output, I get an absolutly clear output.
Changing the resolution of the bitmap has no effect...

So now I have to choose betwheen 96dpi font or a hole in the background
image and Im very unhappy about that :-(

Has someone any suggestions to fix that problem or (best way) to render
richtext directly with transparent background?

If someone wants to take a look, I uploaded the whole sourcesfiles to my

Thanks for any help,

(replies in german or italian are welcome)

Nov 16 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.