logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Guest  
#1 Posted : Friday, January 19, 2018 7:01:54 AM(UTC)
Guest

Rank: Guest

Groups: Guests
Joined: 1/5/2016(UTC)
Posts: 162

Was thanked: 5 time(s) in 5 post(s)
The flag PathPointFlags.MoveTo has a value of 6.

As a result, if you set

Code:
FS_PATHPOINTF point = new FS_PATHPOINTF(x, y, PathPointFlags.MoveTo);


then

Code:
point.Flags.HasFlag(PathPointFlags.MoveTo)


is indistinguishable from

Code:
point.Flags.HasFlag(PathPointFlags.LineTo)


or

Code:
point.Flags.HasFlag(PathPointFlags.BezierTo)


PathPointFlags.MoveTo was probably intended to have a value of 8.
Paul Rayman  
#2 Posted : Friday, January 19, 2018 7:27:55 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Hi,

This is by design behavior.
MoveTo is a synonym of LinteTo | BeizerTo.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.