Sign in to follow this  
Followers 0
xod

Plugins compatibility

3 posts in this topic

I try to make a plugin created in CodeLab v2.18 compatible with v1.8.
The error I receive is:
The space or namespace 'HatchBrush' could not be found (are you missing a using a directive or an assembly reference?)
Same with 'AdjustableArrowCap'.

 

using (HatchBrush pieBrush = new HatchBrush(HatchStyle.BackwardDiagonal, Color.Gray, Color.Transparent))
using (AdjustableArrowCap myArrow = new AdjustableArrowCap(3, 6))

 

Thanks in advance for your help.

0

Share this post


Link to post
Share on other sites

You need to prefix the classes with the System.Drawing.Drawing2D namespace.

 

using (System.Drawing.Drawing2D.HatchBrush pieBrush = new System.Drawing.Drawing2D.HatchBrush(HatchStyle.BackwardDiagonal, Color.Gray, Color.Transparent))
using (System.Drawing.Drawing2D.AdjustableArrowCap myArrow = new System.Drawing.Drawing2D.AdjustableArrowCap(3, 6))

 

1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0