Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. If you are still curious how to use a dll file within an application, I have prepared a simple application for you to illustrate how to do it. I chose an executable here, but doing this from an effect dll would be the same. (Sorry if this offends you, I'm just not sure your level of understanding.) Here is the compiled app: MyFormApp.zip Here is the project files: MyFormSrc.zip What this project does not address is the versioning problem. That is, if you make changes to the dll file, the project may stop working. Bug fixes should be fine, but don't add/delete functions or change the parameter list of a function. If you do add/delete functions from your dll or change the parameter list of a function, you should change the dll's name to avoid versioning problems. Just so you know, none of my effect dll's rely on external dll's for this very reason. Programmers that do put their library functions into a separate dll can tell you how much trouble their users have with installing an older version of the library dll over the top of a new library. Hope this helps.
  2. Oh, ok... Further reading: http://stackoverflow.com/questions/189549/embedding-dlls-in-a-compiled-executable
  3. I don't really recommend making plugin dll's that rely on external dll files. Ask any of the authors who do this why it is a bad idea (versioning). Here is some additional reading: http://stackoverflow.com/questions/18362368/loading-dlls-at-runtime-in-c-sharp
  4. These lines are there to set the effect window's title: // Change the effect's window title props[ControlInfoPropertyNames.WindowTitle].Value = "HSV Eraser"; Usually, they are only included if you specify: // Title: HSV Eraserin your script.If you leave that line out, paint.net generates a title for your window automatically.
  5. Nope, no credit required. BTW, when you are ready to learn how to code plugins, check out this series of tutorials: http://boltbait.com/pdn/CodeLab/help/
  6. Try posting your comment on the plugin thread. The author of the plugin may be able to make the necessary changes to support your request. But, he probably won't see your post here.
  7. Try this plugin: http://forums.getpaint.net/index.php?showtopic=17516
  8. CodeLab 2.8 Released This is only for Paint.NET 4.0.6+! Changes: ▪ Install.bat files are now good enough to ship with your .dll files. Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/ Notes: In the past, when you saved an effect to a .dll file, the .dll file was placed on your desktop and a small install.bat file was also put on your desktop to simplify the act of installing the effect into paint.net. This batch file was customized for your system and was not suitable to ship with your effect. With this build of CodeLab, these install.bat files are flexible enough to be shipped with your effect. Just zip up the .dll file along with the install.bat file and distribute that package. I'm sure that plugin pack owners will be smart enough to modify the install.bat file to install all effect plugins, filetype plugins, and shapes included in their plugin packs. I'm off to do that very thing with my plugin pack. In fact, mine even installs a palette file. Anything that makes installing effects easier is a huge step forward!
  9. The normal way to get rid of that dot is to click on the "Finish" button on the tool bar.
  10. I tried it... it is terrible. If you really want to work in the CMYK color space, you should use a commercial image editor (Photoshop, Corel, etc.)
  11. Try using this plugin: http://forums.getpaint.net/index.php?/topic/28520-print-it-tools-effect/
  12. Ever hear about "truth in advertising"? Here's a quick edit: Hope this helps... ________________________
  13. It also searches paint.net specific sites including BoltBait.com.
  14. There are several reasons this could be happening. It is very common, by the way. - You have an active selection and you're trying to type outside of that selection. To correct, press Ctrl-D before clicking on the text tool. - The layer you're typing on is covered by another layer. To correct, be sure you're typing on the upper most layer. - The color you're typing is the same color as the layer you're typing on. To correct, change your primary color. - The color you're typing has the alpha turned all the way down. To correct, raise the alpha of the primary color.
  15. I would like to see a tutorial (including links to resources) on how to use the OptionBased library. Once I play with it and learn the ins-and-outs, I wonder if I could add support for it in CodeLab... Who is the developer/maintainer of the OptionBased library?
  16. Here is one library: http://forums.getpaint.net/index.php?/topic/28226-
  17. http://forums.getpaint.net/index.php?/topic/692-install-update-or-uninstall-trouble-read-this/?p=326988
  18. Why are you opposed to calling paint.net's built-in effects as part of an effect?
  19. Right-click on your paint.net icon and choose "Properties". In the Shortcut tab, click "Open File Location" button. In the paint.net install directory, double-click on the PdnRepair.exe application. See if that fixes the problem.
  20. Sounds like you pressed the Backspace key instead of the Delete key. The Backspace key is used to fill the current selection with the primary color. Shift-Backspace fills with the secondary color.
  21. I'm going to unlock this. David, he actually is publishing a revised version.
  22. CodeLab 2.7 Released This is only for Paint.NET 4.0.6+! Changes: ▪ UI controls now have custom types. This means the Angle control can now have a specified default angle instead of always 45. (Requested by MJW) ▪ Cleaned up all of the File New template code generation for the new types. ▪ Fixed the Intellisense code to work better with UI variables. ▪ Fixed a couple of dialog box issues. Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/ Conversion: You can open and work with older style scripts without a problem. If you want to convert an older script to the new style, just open it in CodeLab and press Ctrl-I, Enter. This will open the UI Designer and update the UICode block. Example: The older UI control block looked like this: #region UICode int Amount1 = 4; // [0,100] Shadow radius Pair<double, double> Amount2 = Pair.Create( 0.02 , 0.02 ); // Offset ColorBgra Amount3 = ColorBgra.FromBgr(0,0,0); // Shadow color double Amount4 = 0.5; // [0,1] Shadow strength bool Amount5 = false; // [0,1] Keep shadow only #endregion The new UI Custom Types look like this: #region UICode IntSliderControl Amount1 = 4; // [0,100] Shadow radius PanSliderControl Amount2 = Pair.Create( 0.0 , 0.0 ); // Offset ColorWheelControl Amount3 = ColorBgra.FromBgr(0,0,0); // Shadow color DoubleSliderControl Amount4 = 0.5; // [0,1] Shadow strength CheckboxControl Amount5 = false; // [0,1] Keep shadow only #endregion
×
×
  • Create New...