Lightning Strike Posted September 16, 2014 Share Posted September 16, 2014 (edited) Hello, I am Lightning strike. I recently found an Error, I followed the code I got from BoltBait's tutorial, I recently understanded how C# works with Paint.net. I then made a plugin in Visual Studio Express Edition 2013, The Errors are as follows: "Error 1 The name 'LayerBlendModeUtil' does not exist in the current context" and also "Error 2 The name 'LayerBlendMode' does not exist in the current context", even though I know what they mean, I havn't an idea on how to fix this, could someone give me instructions or something tho help? Edited September 16, 2014 by Lightning Strike Quote Many Thanks - Lightning strike. Link to comment Share on other sites More sharing options...
BoltBait Posted September 16, 2014 Share Posted September 16, 2014 Did you add all of the references according to this tutorial? http://boltbait.com/pdn/CodeLab/help/tutorial5.php Hope this helps. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
Lightning Strike Posted September 16, 2014 Author Share Posted September 16, 2014 I did, Bolt Bait, it just doesn't want to work. I'm not new to C#, but this is a complete insanity. I made sure "Allow Unsafe Code" was on over and over again... Quote Many Thanks - Lightning strike. Link to comment Share on other sites More sharing options...
Lightning Strike Posted September 16, 2014 Author Share Posted September 16, 2014 Could you help in anyway? If you wanted I'll give you the C Sharp File. Quote Many Thanks - Lightning strike. Link to comment Share on other sites More sharing options...
null54 Posted September 16, 2014 Share Posted September 16, 2014 You must add a reference to PaintDotNet.Data.DLL in order to use the LayerBlendModeUtil class. 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...
Lightning Strike Posted September 16, 2014 Author Share Posted September 16, 2014 Ah, Thank you. But....I already have that :\ Quote Many Thanks - Lightning strike. Link to comment Share on other sites More sharing options...
Lightning Strike Posted September 16, 2014 Author Share Posted September 16, 2014 Ah, oh, I didn't add the reference to it... apparently it didn't give an error even though there was one. Quote Many Thanks - Lightning strike. Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted September 17, 2014 Share Posted September 17, 2014 The VS template probably referenced the older DLLs (from paint.net 3.5.11). You'll need to point the references to the new DLL's for paint.net 4.x. Find these in the Solutions Explorer pane under References. If you see small yellow warning triangles against the four PaintDotNet.* entries, you'll need to update the path to these references. Right click on 'References' and select 'add Reference...' In the window that appears, select the 'Browse' tab and navigate to (Computer) C:/Program Files/Paint.NET/ double-click on PaintDotNet.Base.dll Repeat the process for the other three DLL's: PaintDotNet.Core.dll, PaintDotNet.Data.dll, PaintDotNet.Effect.dll Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Lightning Strike Posted October 4, 2014 Author Share Posted October 4, 2014 yep, I just noticed your comment, You posted that 5 secs after I realized that xD Quote Many Thanks - Lightning strike. 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.