Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Silvan is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Generic questions about graphic
Next Topic: Synchronize to Github
Goto Forum:
  


Current Time: Tue Apr 29 16:14:05 CEST 2025

Total time taken to generate the page: 0.01160 seconds