Solved

Overlapping Text on a Canvas

Posted on 1997-10-08
2
309 Views
Last Modified: 2010-04-03
Whenever I print two lines of text on an Image canvas using TextOut, and the lines overlap, each character of the top line appears to be drawn as a block (i.e. not transparent) so that the line underneath is almost completely obscured.  Does anybody know how to print text "tranparently" so that graphics underneath are not obscured?
0
Comment
Question by:MBaker
2 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 100 total points
Comment Utility
Try the following:

SetBkMode(MyCanvas.Handle, TRANSPARENT);
MyCanvas.TextOut(2, 2, 'Base Text');
MyCanvas.TextOut(20, 5, 'Overlapped Text');
SetBkMode(MyCanvas.Handle, OPAQUE);

JB
0
 

Author Comment

by:MBaker
Comment Utility
Thanks.  Worked great!
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now