Jump to content

BoltBait

Administrator
  • Posts

    15,728
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. When you MULTIPLY layers together you need to understand why you're seeing the colors you are. In the multiply blend mode, the pixels of both the top and bottom layers are multiplied together and you see the results. So, if you have a black pixel (basically 0) then when you multiply it with anything else the result is 0 or black. If you have a white pixel (255) and you multiply it with anything, you get the full color of the other pixel. If you have a shade of gray, you'll get some mixture of the other pixel and black depending on the shade of gray. Have you tried other blending modes?
  2. I completely understand. I was seeing the same issues so I wrote my own line drawing routine for the Render > Stars plugin I mentioned above. You can see it in action if you change the line width to 1 and disable anti-aliasing. Here is the code I used: // GDI sucks at drawing lines of brush width 1, so I'll do this job myself. private void DrawThinLine(int x1, int y1, int x2, int y2, Surface dst, ColorBgra LineColor, PdnRegion selectionRegion) { int i; double roundx, roundy, xi, yi, dx, dy, x, y, l; dx = x2 - x1; dy = y2 - y1; if (Math.Abs(dx) > Math.Abs(dy)) { l = dx; } else { l = dy; } if (l < 0) { DrawThinLine(x2, y2, x1, y1, dst, LineColor, selectionRegion); } else { xi = dx / l; yi = dy / l; x = x1; y = y1; dst[(int)x, (int)y] = LineColor; for (i = 1; i <= l; i++) { if (IsCancelRequested) return; x = x + xi; y = y + yi; roundx = x + 0.5; roundy = y + 0.5; dst[(int)roundx, (int)roundy] = LineColor; } } }Hmmm... why did I send in a PdnRegion? Looking at the code now, I think it may write over the same pixels more than once since there is no clipping. Oh well, no harm done.
  3. If you are just trying to launch Paint.NET with your image file preloaded, that's no problem: C:\Program Files\Paint.NET\paintdotnet.exe myimage.jpg ...should do the trick.
  4. If you have my plugin pack installed, you can use Effects > Render > Stars to create circles. Just put the points to maximum and do multiple renders by changing the size each time. For example, shown here running for the 3rd time:
  5. I have recompiled this plugin for Paint.NET 4.0. The algorithm is the same, only the UI has changed. Check the first post in this thread for download link. Install the normal way. (Yes, I've been cleaning up all my older plugins. I think this is the last one. ) Source code to the decoders: Hidden Content: // Title: BoltBait's Steganography B&W Decoder v2.0 // Name: B&W Decoder // Submenu: Steganography // URL: http://boltbait.com/pdn/ // Author: BoltBait // Keywords: Steganography|Decode|hidden|hide|secret|agent // Desc: Reveal a hidden color image #region UICode #endregion void Render(Surface dst, Surface src, Rectangle rect) { for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { ColorBgra HiddenPoint = src[x,y]; int GrayLevel = ((((int)HiddenPoint. & (int)1) * 4); GrayLevel += (((int)HiddenPoint.G) & (int)1) * 2; GrayLevel += (((int)HiddenPoint.R) & (int)1); HiddenPoint.R = (byte)(GrayLevel * 32); HiddenPoint.G = (byte)(GrayLevel * 32); HiddenPoint.B = (byte)(GrayLevel * 32); dst[x, y] = HiddenPoint; } } } Hidden Content: // Title: BoltBait's Steganography Color Decoder v2.0 // Name: Color Decoder // Submenu: Steganography // URL: http://boltbait.com/pdn/ // Author: BoltBait // Keywords: Steganography|decode|hidden|hide|secret|agent // Desc: Reveal a hidden color image #region UICode #endregion void Render(Surface dst, Surface src, Rectangle rect) { for (int y = rect.Top; y < rect.Bottom; y++) { if (IsCancelRequested) return; for (int x = rect.Left; x < rect.Right; x++) { ColorBgra HiddenPoint = src[x,y]; HiddenPoint.R = (byte)((((int)HiddenPoint.R) & (int)7) * 36); HiddenPoint.G = (byte)((((int)HiddenPoint.G) & (int)7) * 36); HiddenPoint.B = (byte)((((int)HiddenPoint. & (int)7) * 36); dst[x, y] = HiddenPoint; } } }
  6. Paint.NET is not designed to be used in this way.
  7. zeromus, you can change the tool defaults by clicking on Settings (gear in upper right corner) then the "Tools" tab.
  8. Click on Settings Gear (upper right corner), then on the Tools tab.
  9. CodeLab 2.1 Released This is only for Paint.NET 4.0! Changes: ▪ When a effect dll is created on your desktop an install batch file is also created. This is only for your system. It can be used to quickly install the dll you just built. It is not flexible enough to be shipped with your effect. ▪ A bug was fixed when locating bugs in your own code (double clicking on error message) ▪ On build dll page, an option was added for forcing aliased selection edges. Normally in Paint.NET 4.0, the user can set the edge behavior (aliased or anti-aliased) Setting this option will force the edges to be treated aliased. This is only helpful when setting or adjusting the alpha values of selected pixels. Usually you'll just leave this turned off unless you're specifically calculating the alpha values of the edge pixels. This can be specified in the script as a comment: // Force Aliased Selection Grab the CodeLab DLL here: http://www.boltbait.com/pdn/CodeLab/ Support the development of CodeLab $USD $ GBP £ EUR € JPY ¥ CAD $ AUD $ I haven't gotten a donation for CodeLab in a while. Is anyone out there using it?
  10. OK, I rebuilt the gradient effect grab your copy here: http://forums.getpaint.net/index.php?/topic/1957-
  11. You have windows 7, but you haven't updated it with service pack 1. Try running windows updates.
  12. If I could shut down a corporation through the phone, AT&T would no longer exist. (Long story... Long, sad story.) I will update it tonight and post an updated version tomorrow (Sunday, July 6). EDIT: http://forums.getpaint.net/index.php?/topic/1957- has been updated. This is pretty much a straight port from the older code. When I get some time I may add some features. But for now, this new edit should work on 4.0.
  13. If only one of the original developers of the plugin was around to do it... oh wait--
  14. As this feature is already in the popular feature requests list, I'm just going to lock this thread.
  15. You may need to turn off hardware acceleration if you are seeing visual anomalies. That is on the settings screen. Click the gear icon in the upper right corner of the paint.net window.
  16. Make sure you have the latest version of this plugin installed: https://forums.getpaint.net/topic/927-icon-cursor-and-animated-cursor/ I have it working fine in Paint.NET 4.0 on Win7.
  17. I had a car once. Then, I bought the turbo charged version of that same car. It felt strange at first. It didn't take long, but once I got used to it, all the extra power was awesome!
  18. First thing to try is turning of Hardware Acceleration in the configuration screen by clicking the gear in the upper right corner.
  19. I opened your image, repainted it according to your desired color, and saved it as a png: I didn't have any trouble with it and I'm using Paint.NET 4.0. Not sure why you're having trouble with this.
  20. Be sure when saving PNG files the save configuration screen lists the bit depth as Autodetect or 32 bit.
×
×
  • Create New...