Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Older scripts work just as before. It would be best if you played around with the User Interface Designer (Ctrl-I) to see how the color wheel controls work now. I may refine the code in the next update. In the meantime, if you don't like it, just turn it off in the Help menu.
  2. CodeLab 2.13 Released This is only for Paint.NET 4.0.9+! Another small update today... Changes: ▪ Added auto updater. (Probably should have added this first... ) ▪ Colorwheel controls can have specified defaulted colors. ▪ Double Vector controls can now have defaults. Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/ Details In the past, the first color wheel control always defaulted to the currently selected primary color and the second (and beyond) color wheel control defaulted to the currently selected secondary color. Now, you can specify defaults for the color wheel controls. Here is an example: // Name: Drop Shadow Demo // Submenu: Object // Author: BoltBait // Title: Drop Shadow Demo // Version: 0.1 // Desc: Drop Shadow // Keywords: drop|shadow // URL: http://www.BoltBait.com/pdn // Help: #region UICode IntSliderControl Amount1 = 4; // [0,100] Radius PanSliderControl Amount2 = Pair.Create( 0.020 , 0.020 ); // Shadow Offset ColorWheelControl Amount3 = ColorBgra.FromBgr(0,0,0); // [Black] Shadow Color DoubleSliderControl Amount4 = 0.5; // [0,1] Shadow Strength #endregion // Working surface Surface wrk = null; // Setup for using Normal blend op private BinaryPixelOp normalOp = LayerBlendModeUtil.CreateCompositionOp(LayerBlendMode.Normal); // Here is the main render loop function void Render(Surface dst, Surface src, Rectangle rect) { // offset the src canvas onto the wrk canvas if (wrk == null) { ColorBgra ShadowColor = Amount3; wrk = new Surface(src.Size); for (int y=0; y < src.Size.Height; y++) { for (int x=0; x < src.Size.Width; x++) { wrk[x,y] = src.GetBilinearSample((float)(x-Amount2.First*100),(float)(y-Amount2.Second*100)); ShadowColor.A = (byte)(wrk[x,y].A * Amount4); wrk[x,y] = ShadowColor; } } } // Setup for calling the Gaussian Blur effect GaussianBlurEffect blurEffect = new GaussianBlurEffect(); PropertyCollection blurProps = blurEffect.CreatePropertyCollection(); PropertyBasedEffectConfigToken BlurParameters = new PropertyBasedEffectConfigToken(blurProps); BlurParameters.SetPropertyValue(GaussianBlurEffect.PropertyNames.Radius, Amount1); blurEffect.SetRenderInfo(BlurParameters, new RenderArgs(dst), new RenderArgs(wrk)); // Call the Gaussian Blur function blurEffect.Render(new Rectangle[1] {rect},0,1); // Now in the main render loop, the dst canvas has a blurred version of the wrk canvas for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { ColorBgra CurrentPixel = dst[x,y]; CurrentPixel = normalOp.Apply(CurrentPixel,src[x,y]); dst[x,y] = CurrentPixel; } } } The color wheel default comes from the color word in brackets in the comment, not from the color specified in the Bgr call.Notice that when the code is built, the PanSliderControl also uses the specified values as the defaults.
  3. If you install the new version, I don't think it will take you very long to get used to the changes. And, you get the HUGE benefit of running the latest version and all new plugins. Just go for it! In a couple of days, you won't even remember the old version.
  4. If you're up-to-date with everything, try disabling this: By running REGEDIT and going to: HKEY_CURRENT_USER\SOFTWARE\Paint.NET Change: UI/EnableHardwareAcceleration to False
  5. When you click on the Effects menu, you'll see a small blue puzzle piece for each installed plugin. (Like this :Plugins: only blue)
  6. Try: Effects > Noise > Reduce Noise or Effects > Noise > Median
  7. If you have my plugin pack installed (link in sig), you can do it this way: 1. Adjustments > Invert colors 2. Effects > Object > Switch Gray to Alpha (click "Black", then "OK") Remember to save as a .PNG file to maintain transparency.
  8. Once again, you're answering with Photoshop advice. That is worthless information on this forum and if it continues, I'll ban you for spamming.
  9. http://forums.getpaint.net/index.php?/topic/9349-plugin-problems-read-this
  10. That's probably not a good idea since your SD card will not always be present in your system. A better way is to install it normally to your HDD, then copy your c:\Program Files\Paint.NET\ directory to your SD card. When you move the SD card to another computer, navigate to that directory and run PaintDotNet.exe
  11. I use two plugins to improve my landscape photos: http://forums.getpaint.net/index.php?/topic/5578- and http://forums.getpaint.net/index.php?/topic/16736-
  12. Try this filetype plugin: http://forums.getpaint.net/index.php?/topic/22863-portable-document-format-filetype-plugin-pdf/
  13. Save your fill pattern to a file, select the white area, and use my plugin Paste > From File. http://forums.getpaint.net/index.php?/topic/32048-v Hope this helps.
  14. Here is a quick hack (far from perfect) to make the texture seamless and add depth to the grain:
  15. When using the text tool, play with the options... I used Arial 10 with the Sharp (Classic) rendering. The text lines up almost exactly. The slight differences are probably due to the way paint.net renders text vs. MS Paint.
  16. I seriously doubt Rick would put the support right into paint.net. After all, that's what the plugin system is for. If you post a sample image (family friendly, of course) here (and maybe a link to the file specification), someone might make you a plugin.
  17. The ice and cherries look good. All you need now is a glass and some vodka.
  18. Mouse wheel = vertical scroll Shift+mouse wheel = horizontal scroll
  19. I'm just going to move this to General Discussion until it is determined that there is a problem in paint.net.
  20. http://forums.getpaint.net/index.php?/topic/692-install-update-or-uninstall-trouble-read-this/?p=326988
×
×
  • Create New...