xod Posted December 20, 2016 Share Posted December 20, 2016 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. Quote Link to comment Share on other sites More sharing options...
null54 Posted December 20, 2016 Share Posted December 20, 2016 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 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint 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 More sharing options...
xod Posted December 20, 2016 Author Share Posted December 20, 2016 I understood. Thanks @null54. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.