Board index » cppbuilder » TextOut isnot transparent

TextOut isnot transparent

I've created some bitmap (16 color, 32x32), filled it some
color and wrote one letter to this bitmap using TextOut.
But on the display this letter is not showing transparent,
ie there's rectangle around this letter which color is not
same as bitmaps color.
 

Re:TextOut isnot transparent


Quote
RedOne <tu...@magicnet.mn> wrote:
>I've created some bitmap (16 color, 32x32), filled it some
>color and wrote one letter to this bitmap using TextOut.
>But on the display this letter is not showing transparent,
>ie there's rectangle around this letter which color is not
>same as bitmaps color.

Read in WIN32.HLP about the function 'TextOut'. It describes there how
transparently to output text.

--
Lucian Wischik, Queens' College, Cambridge CB3 9ET. ljw1...@cam.ac.uk

Re:TextOut isnot transparent


Use SetBkMode(hdc, TRANSPARENT);

--
C. K. So - Software Engineering student
ICQ : 8197343
E-mail : c...@hkid.com
Homepage : http://ckso.of.hkid.com

Quote
>I've created some bitmap (16 color, 32x32), filled it some
>color and wrote one letter to this bitmap using TextOut.
>But on the display this letter is not showing transparent,
>ie there's rectangle around this letter which color is not
>same as bitmaps color.

Re:TextOut isnot transparent


Quote
RedOne wrote:

> I've created some bitmap (16 color, 32x32), filled it some
> color and wrote one letter to this bitmap using TextOut.
> But on the display this letter is not showing transparent,
> ie there's rectangle around this letter which color is not
> same as bitmaps color.

Canvas->Pen->Color = clRed;
Canvas->Brush->Style = bsClear;
Canvas->TextOut(....);

Other Threads