Solved

Overlapping Text on a Canvas

Posted on 1997-10-08
2
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
JimBob091197 earned 100 total points
ID: 1347098
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
ID: 1347099
Thanks.  Worked great!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

688 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