Jump to content

Plugins compatibility


xod

Recommended Posts

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.

Link to comment
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))

 

  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint Shop Pro Filetype | RAW Filetype | WebP Filetype

The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...