Home » Community » Newbie corner » Display transparent paper
Re: Display transparent paper [message #58051 is a reply to message #58049] |
Sun, 30 January 2022 09:34   |
Silvan
Messages: 56 Registered: December 2014 Location: Trento (IT)
|
Member |
|
|
Thak you, I specify better my question-
I want to use the alignment capacity of Display and I use this:
Display::Paint(Draww,Rectrc,AttrText(sometext).Center(),Red, White,0);
White is the paper color, but I want to write on the existing background (transparent).
I finally used something like this:
Size size = GetTextSize(sometext, font);
Draw::.DrawText((sz.cx-size.cx)/2, (sz.cy-size.cy)/2, sometext, font, Red);
I'm wandering if there exist I direct way to use Display.
Bye
Silvano
|
|
|
 |
|
Display transparent paper
By: Silvan on Sat, 29 January 2022 20:38
|
 |
|
Re: Display transparent paper
By: Lance on Sun, 30 January 2022 00:09
|
 |
|
Re: Display transparent paper
By: Silvan on Sun, 30 January 2022 09:34
|
 |
|
Re: Display transparent paper
By: Lance on Sun, 30 January 2022 18:14
|
 |
|
Re: Display transparent paper
By: Lance on Sun, 30 January 2022 18:20
|
 |
|
Re: Display transparent paper
By: Silvan on Sun, 30 January 2022 19:15
|
 |
|
Re: Display transparent paper
By: Lance on Sun, 30 January 2022 23:17
|
 |
|
Re: Display transparent paper
By: Lance on Sun, 30 January 2022 23:23
|
 |
|
Re: Display transparent paper
By: Silvan on Mon, 31 January 2022 12:20
|
 |
|
Re: Display transparent paper
By: Oblivion on Mon, 31 January 2022 17:47
|
 |
|
Re: Display transparent paper
By: Silvan on Mon, 31 January 2022 18:46
|
Goto Forum:
Current Time: Tue Apr 29 16:14:05 CEST 2025
Total time taken to generate the page: 0.01160 seconds
|