482 views
in GUI Development by

Hello Paul,

         In the StrokePath,I have two line,

        Path.SetMaxNoOfSubPaths( 2 );
        Path.InitSubPath( 0,33);
        Path.InitSubPath( 1,33);

        Path.Begin( 0,  0.0   ,  220.0 );
        Path.Begin( 1,  100.0   ,  220.0 );

 

Now,I want to change two different lines into two different colors ,What shold i do?I didn't find a function that could change color .

Thank you.

Best regards,

Tonny

1 Answer

0 votes
by
 
Best answer

Hello Tonny,

please note, that a path contains just a vector information - it describes the shape or the outline. Displaying the path data is done by using a FilledPath or Stroked Path view. These views can be configured to show the entire path with a certain color.

In your case, you can create two Path Data objects and use two Stroked Path views - each with the desired colors.

Best regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...