-
Posts
5,022 -
Joined
-
Last visited
-
Days Won
155
Everything posted by toe_head2001
-
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.
-
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.
-
File -> Open
-
I need help with a ROBLOX shirt
toe_head2001 replied to alana's topic in Paint.NET Discussion and Questions
The documentation for ROBLOX clothing is here: https://developer.roblox.com/en-us/articles/How-to-Make-Shirts-and-Pants-for-Roblox-Characters -
PDN Shapes in Inkscape?
toe_head2001 replied to Frustratedwithregistration's topic in Paint.NET Discussion and Questions
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> -
PDN Shapes in Inkscape?
toe_head2001 replied to Frustratedwithregistration's topic in Paint.NET Discussion and Questions
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. -
PDN Shapes in Inkscape?
toe_head2001 replied to Frustratedwithregistration's topic in Paint.NET Discussion and Questions
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. -
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.
-
Paint.NET exits immediatly after starting
toe_head2001 replied to MJW's topic in Troubleshooting & Bug Reports
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. -
@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.
-
Please provide an example file.
-
Replace are not working
toe_head2001 replied to MartinHorn's topic in Paint.NET Discussion and Questions
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/ -
Deleting a Selection
toe_head2001 replied to http://itsuki.com's topic in Paint.NET Discussion and Questions
The Backspace key fills the selection with the Primary Color. The Delete key will make the pixels transparent. -
Paint.Net won't open or Reinstall please help
toe_head2001 replied to BlacKnight's topic in Troubleshooting & Bug Reports
To clarify, did you uninstall Paint.NET before trying to reinstall it from the Microsoft Store? -
How Do I Install My Visual Studio Plug In Dll's?
toe_head2001 replied to DataJuggler's topic in Plugin Developer's Central
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. -
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.