Jump to content

toe_head2001

Administrator
  • Posts

    5,022
  • Joined

  • Last visited

  • Days Won

    155

Everything posted by toe_head2001

  1. You can access each pixel with an Indexer on the Surface type. for (int y = 0; y < mySurface.Height; y++) { for (int x = 0; x < mySurface.Width; x++) { ColorBgra currentPixel = mySurface[x, y]; byte r = currentPixel.R; byte g = currentPixel.G; byte b = currentPixel.B; byte a = currentPixel.A; } } Keep in mind that the Paint.NET DLL assemblies are not licensed to be used independently of Paint.NET.
  2. Sorry, there is not. What would be the purpose of that? Would the importer automatically convert the .PDN to a flattened texture asset for use in your game? There is no Surface in System.Drawing. Probably not. You'd need the Opacity and Blend Mode for each layer too.
  3. The documentation for ROBLOX clothing is here: https://developer.roblox.com/en-us/articles/How-to-Make-Shirts-and-Pants-for-Roblox-Characters
  4. I suggest restoring the file from a backup, if you have one. Otherwise, you can't transform a PDB file into an image.
  5. This doesn't look like an image file, but rather a Symbols file (PDB). https://en.wikipedia.org/wiki/Program_database
  6. Yes, please share the file, so we can help you. You are using an old and unsupported version of Paint.NET. You need to updated to the newest version. https://www.getpaint.net/doc/latest/SettingsDialog.html#5
  7. Like I said, just the Geometry gets transferred to the SVG. Here's an example: <ps:SimpleGeometryShape xmlns="clr-namespace:PaintDotNet.UI.Media;assembly=PaintDotNet.Framework" xmlns:ps="clr-namespace:PaintDotNet.Shapes;assembly=PaintDotNet.Framework" DisplayName="Untitled" Geometry="M 50,50 L 450,50 "/> <svg height="500" viewBox="0 0 500 500" width="500" xmlns="http://www.w3.org/2000/svg"> <path d="M 50,50 L 450,50" fill="none" stroke="#000" stroke-width="1.0"/> </svg>
  8. Please don't reply to these very old forum topics. Scrolling of the canvas has changed a bit in the past 6 years (especially with overscroll). Please open a new topic, and describe your issue in detail. Thanks. Locked.
  9. Yes to both. Any text/code editor. Well, not all the code, just the Geometry portion. It should make sense once you have the XAML file and the SVG file open side-by-side.
  10. Short answer: No. Long answer: Yes, if you use a text editor to manually convert the files to .SVG. It's a very simple conversion; just copy the Geometry from the XAML file into a SVG file.
  11. Here are some potential improvements/optimizations: In PreRender, you can constrain CopyMask() to the selection bounds. This way, you don't waste CPU cycles changing pixels that are out of scope. Rectangle selBounds = EnvironmentParameters.SelectionBounds; CopyMask(aux, src, selBounds, true, true); Be aware, you may not always want to constrain to selection. It just depends on what your Effect plugin is doing. For example, a Gaussian Blur can be influenced by pixels outside of the selection, so you wouldn't constrain to the selection bounds in that case. The call to contrastEffect.Render() can be moved from PreRender to Render. contrastEffect.Render(new Rectangle[] { rect }, 0, 1); Again, this is something you may not always want to do, for mostly the same kind of reasons stated above.
  12. Sounds like the issue is in relation to a native Win32 DLL. Maybe one that Windows Update modified. That's just a guess; I can't say for sure.
  13. @S4M31, please use the 'Plugin Errors' that is built into Paint.NET. It looks like this: https://www.getpaint.net/doc/latest/SettingsDialog.html#7 The 'Detect plugin problems' is a very old utility from Simon Brown. He made in back in the days of Paint.NET v3.x. It doesn't work properly anymore, and gives nothing but false positives.
  14. @hypercat, please don't create duplicate topics. I've merged the two topics together.
  15. This should be fixed in v4.2.13. You can find the testing release here: https://forums.getpaint.net/topic/116743-paintnet-4213-alpha-build-7497/
  16. That is not an error related to Paint.NET. You'll need to talk to Microsoft support for Windows 8.1 issues.
  17. The Backspace key fills the selection with the Primary Color. The Delete key will make the pixels transparent.
  18. To clarify, did you uninstall Paint.NET before trying to reinstall it from the Microsoft Store?
  19. It looks like you have your plugin DLL and two dependency DLLs. Copy those 3 file into the Effects folder within the Paint.NET program files directory. https://www.getpaint.net/doc/latest/InstallPlugins.html Or, for distribution to others, just place those 3 files into a ZIP, and you're done.
  20. I was trying to give you constructive criticism, so you can improve it. It sounds like you've realized my intention, since you think it was actually nice after all.
  21. The fact that its user-interface looks like it was designed by a child probably doesn't help. Seriously, get rid of those custom buttons. Human interface guidelines exist for a reason. No offense; I'm not trying to be rude. That sort of plugin functionality has been requested many times already, so Rick is aware people want it. However, there are many other things to do with higher priority.
×
×
  • Create New...