• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

stroke weight

Explorer ,
Sep 02, 2016 Sep 02, 2016

Copy link to clipboard

Copied

1:

PMReal strokeWeight=0;

if(Style == border_style_ind_Plain)//no border

{

strokeWeight=0;

}

else if(Style == border_style_ind_Plain_Border)// border

{

strokeWeight=0.5;

}

// we apply the stroke to our item

InterfacePtr<ICommand> strokeSplineCmd (Utils<IGraphicAttributeUtils>()->CreateStrokeWeightCommand(strokeWeight,&splineItemList,kTrue,kTrue));

if(strokeSplineCmd==nil)

{

ASSERT_FAIL("Cannot create the command to stroke the spline?");

//break; -- Illegal break error???

}

Here , while applying stroke to the frame , I'm giving stroke wight "0" for the frames that don't need border

but when I check result the frames have wight "1" instead of "0"

Idea why?

2: In the same code I'm getting Illegal break error !!

TOPICS
SDK

Views

227

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Sep 06, 2016 Sep 06, 2016

Copy link to clipboard

Copied

break should be inside a loop. You probably copied code from somewhere without including the loop.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 06, 2016 Sep 06, 2016

Copy link to clipboard

Copied

LATEST

Sorry, Didn't notice.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines