delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/20/23:27:50

Date: Wed, 21 Oct 1998 04:25:05 +0100 (BST)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: Printing text onto a bitmap.
In-Reply-To: <fc80acc6.362d214a@aol.com>
Message-ID: <Pine.OSF.4.05.9810210424050.8325-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Tue, 20 Oct 1998 DoctorXV AT aol DOT com wrote:

> Hi! I use Allegro and I have a data file to load. I load the data file, put a
> picture onto the screen, then I print some text across the bitmap. The problem
> is, the text doesn't have a transparent background. It completely ruins the
> picture. How do I get the text to have a transparent background? I use the
> function textout()

Use the `text_mode' function:

    text_mode (-1);
    textout (...);

The parameter is the desired background colour; passing -1
results in a transparent background.  The default is 0.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019