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 » Example: TextToSvgPath - Draw + Paint (Unified Draw-Paint Call - cannot call 'Color')
Re: Example: TextToSvgPath - Draw + Paint [message #59145 is a reply to message #59143] Wed, 09 November 2022 15:16 Go to previous messageGo to previous message
UltimatePP
Messages: 3
Registered: November 2022
Junior Member
Thank you for the prompt reply, I'm very grateful for your time.

I have given that a shot, that is how Color is documented and I assumed it would work but I only get a return saying that Color is a private constructor and it does not provide a call operator. Here is a snippet of the original code:


void Preview::Paint(Draw& w)
{
DrawPainter sw(w, GetSize());
sw.Clear(SWhite());
sw.Path(svgpath).Fill(SBlack());
}


I've tracked down SWhite and SBlack in "Draw.h" included with the project, but their RGB values are obviously not declared here. The same colours (and Draw.h) are referenced in "SColors.cpp" within Chameleon, but their RGB values are not declared here either, just the dark theme adjustments.

Is there anything I can call that would substitute raw RBG values in "sw.Clear" and "sw.Path(svgpath).Fill"?

Again, thank you for your time!
 
Read Message icon5.gif
Read Message
Read Message
Read Message icon10.gif
Previous Topic: Some Questions
Next Topic: A couple of noob questions
Goto Forum:
  


Current Time: Sun Aug 24 02:41:30 CEST 2025

Total time taken to generate the page: 0.04091 seconds