?
Solved

Overlapping Text on a Canvas

Posted on 1997-10-08
2
Medium Priority
?
334 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 400 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

771 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