Jump to content

BoltBait

Administrator
  • Posts

    15,730
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. Step 1: Install my plugin pack - https://forums.getpaint.net/index.php?/topic/32048-v Step 2: Open your image Step 3: Effects > Object > Feather Object (size 1) Step 4: Save image as 32-bit PNG
  2. If you are saving in JPG format, make sure the quality slider is all the way up.
  3. paint.net is a bitmap editor--it doesn't have vector support. So, this plugin imports vectors as bitmaps.
  4. Can't you do what you want with the built-in effect Effects > Distort > Frosted Glass ?
  5. Your computer may be installing updates in the background. Make sure all updates are installed before continuing.
  6. Second, if you want help with your algorithm, post 2 pictures: (1) a picture of what your canvas looks like before running your effect, and (2) a picture of what you want your result to be. I don't care how you do it, just make a mock up. Your code is a complete mess. We'll need to start from scratch.
  7. First... ...Don't do this. Random is not thread safe. Better to add a Reseed button: #region UICode IntSliderControl Amount1 = 10; //[1,200]Radius ReseedButtonControl Amount2 = 0; // [255] Reseed #endregion Access random numbers this way: (byte)RandomNumber.Next(256); etc.
  8. Yup. I clicked on it earlier and it was paint.net... although, the screenshots were so bad, I couldn't tell what version it was.
  9. CodeLab 2.21 Released This is only for Paint.NET 4.0.6+! Small update today... Changes: ▪ Fixed bug in the Build to DLL screen when using Rich Text help files. (toe_head2001) ▪ Modified updater code to defeat caching. (BoltBait) Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/ Thanks to ReMake for the bug report!
  10. If you want, you can just close that tools window. Then, when you want to change tools, click here: or, simply learn the shortcut keys for the various tools.
  11. I don't know how paint.net does it, but if you are simply interested in an algorithm for sharpening a photograph, here's one: // Author: BoltBait // Submenu: Photo // Name: Sharpen (unsharp mask) // URL: http://www.BoltBait.com/pdn #region UICode IntSliderControl Amount1 = 100; // [0,200] Sharpen #endregion unsafe void Render(Surface dst, Surface src, Rectangle rect) { // Setup for calling the Gaussian Blur (radius = 1) function GaussianBlurEffect blurEffect = new GaussianBlurEffect(); PropertyCollection bProps = blurEffect.CreatePropertyCollection(); PropertyBasedEffectConfigToken bParameters = new PropertyBasedEffectConfigToken(bProps); bParameters.SetPropertyValue(GaussianBlurEffect.PropertyNames.Radius, 1); blurEffect.SetRenderInfo(bParameters, new RenderArgs(dst), new RenderArgs(src)); blurEffect.Render(new Rectangle[1] {rect},0,1); // Now in the main render loop, the dst canvas has a blurred version of the src canvas for (int y = rect.Top; y < rect.Bottom; y++) { ColorBgra* srcPtr = src.GetPointAddressUnchecked(rect.Left, y); ColorBgra* dstPtr = dst.GetPointAddressUnchecked(rect.Left, y); for (int x = rect.Left; x < rect.Right; x++) { ColorBgra AdjustmentPixel = *dstPtr; // blurred pixel ColorBgra SourcePixel = *srcPtr; // original pixel // Sharpen (unsharp mask) double NewR = (double)SourcePixel.R + ((double)SourcePixel.R - (double)AdjustmentPixel.R) * (double)Amount1 / 100.0; double NewG = (double)SourcePixel.G + ((double)SourcePixel.G - (double)AdjustmentPixel.G) * (double)Amount1 / 100.0; double NewB = (double)SourcePixel.B + ((double)SourcePixel.B - (double)AdjustmentPixel.B) * (double)Amount1 / 100.0; AdjustmentPixel.R = Int32Util.ClampToByte((int)NewR); AdjustmentPixel.G = Int32Util.ClampToByte((int)NewG); AdjustmentPixel.B = Int32Util.ClampToByte((int)NewB); *dstPtr = AdjustmentPixel; srcPtr++; dstPtr++; } } } If you have my plugin pack installed, this is the same sharpen method my Photo > Landscape plugin uses. I just isolated the sharpen code and posted it above. If you need help understanding what is happening, just ask and I (or someone else) will explain it to you.
  12. There's your problem right there. Dump Norton's worthless virus checker and use Windows Defender.
  13. I put orange text on a blank layer. I added Effects > Object > Bevel (size 1) and then Effects > Object > Shadow I used Adjustments > Brightness/Contrast (sliding both to the left). Then, I used Effects > Stylize > Floyd-Steinberg Dithering (Original Windows Palette)
  14. CodeLab 2.20 Released This is only for Paint.NET 4.0.6+! Small update today... Changes: ▪ Intelligent Assistance updates (see previous posts above for description). (toe_head2001) ▪ Frosted Glass added to list of Template effects (Ctrl+N) (BoltBait) Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/
  15. If you have my plug-in back installed, you can use effects > Fill > from file
  16. What version of paint.net are you using? I ask, because I believe Rick fixed this issue in v4.0.14
  17. I wouldn't worry about it. Just let the compression happen each build. It only takes a second.
  18. What you are asking for is not too hard. Open your project in visual studio. Right-click on your project and choose "Open folder in file explorer" Put this copy of "Compress.exe" into that folder. CompressV2.zip This build of "Compress" allows command line compressing. In visual studio, open your project properties screen and choose "Build events" In the "Pre-build event" section, place the following DOS commands: cd $(ProjectDir) compress help.rtf This will compress "help.rtf" into "help.rtfz" before the build begins. As long as you have "help.rtfz" included in the project as an "embedded resource" everything should work fine.
  19. True. But, you can design something in ShapeMaker and OUTPUT the geo code using the menu File > Export Path Geometry.
×
×
  • Create New...