About   |   Getting Started   |   Downloads   |   Documentation   |   Forum


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
applying a pathstyle
07-19-2016, 10:51 AM
Post: #1
applying a pathstyle
I've created a default path style for newly-created art, but it's not applying it to the art. Can someone tell me what I'm doing wrong? Thanks -- rj

Code:
hdi::core::PathStyle pStyl;
pStyl.useFill = false;
pStyl.useStroke = true;
pStyl.stroke.width = 0.5;
pStyl.stroke.dash = hdi::core::DashStyle::DashStyle();
pStyl.stroke.color = hdi::core::ArtColor::ArtColor(1.0);
lineArt.path()->style() = pStyl;
Find all posts by this user
Quote this message in a reply
07-19-2016, 06:11 PM
Post: #2
RE: applying a pathstyle
You must use the hdi::core::PathArt::setStyle() method.
Find all posts by this user
Quote this message in a reply
07-19-2016, 07:07 PM
Post: #3
RE: applying a pathstyle
Thank you, Garrett! I thought there must be a method for that. I'd like to find a way to print the online docs as one PDF document to make searching faster and more thorough. And to spare you from too many dope-slap questions like this one. But seriously, thank you!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)