DataJuggler

Newbies
  • Content Count

    9
  • Joined

  • Last visited

Community Reputation

0

Recent Profile Visitors

83 profile views
  1. It would save me pulling in a bunch of code. If yes, I have two questions to what is possible. I currently load my PixelDatabase by either a Bitmap, an Image, or a path to an image. Is it possible to access the current layer as an Image or Bitmap, or do I have to loop through the pixels and create an image? Second question is in regards to applying, as it is stands now my component writes to each pixel already if it is effected, and it is pretty efficient using this class called DirectBitmap that bypasses Bitmap.SetPixel due to speed, but I am sure not as efficient as the rectangle multi-threaded approach I just read about in Paint.Net. Is it possible after I apply my query, to take the bitmap that already has all the new pixel values and just apply it to the destination Surface? I don't even know what a Surface is, my guess is it is a layer of some type, but what I am getting at I would prefer not to have to iterate through all the pixels twice, or move code around since I already have an ApplyPixels method. Thanks, I didn't know Paint.Net was extensible until today. Funny as a programmer I can tell I think subconsciously in billable hours, even for my own projects. I always start from scratch and try and build a rounder wheel, or something else that has already been invented.
  2. Windows Forms is my background, I read the Visual Studio part. Thanks, I have another question, I will start another thread because it is two part.
  3. I have a Nuget package called DataJuggler.PixelDatabase, and a new website that uses it https://pixeldatabase.net , and I have installed Code Labs on my computer. The UI samples I saw all used sliders, and my program needs a text editor to type or paste in text for BQL, which stands for Bitmap Query language, which is very similar to SQL for databases. Is is possible to build a UI where a user can type or paste in Text like this? BQL to remove the black background: Hide Total < 50 Click the Apply Button: I think this would be a useful add on for Paint.Net. I wrote my program to do some of the things I couldn't do with Paint.Net. Thanks for any guidance. The code to replace the pixels looks straight forward in the plug Render method, as I do the same thing already I just don't break it up into smaller rectangles.
  4. I read the rules and didn't see anything forbidding open source projects that work with Paint.Net from being shown. I hope this is ok, if not I apologize. Video: How To Create Text In A Custom Texture Using Paint.Net And Transparency Maker (I read the must embed, but I couldn't figure it out, please tell me how, because if I post YouTube's embed, it shows up an IFrame, sorry). Transparency Maker is a free open source C# .Net program, that converts an image into a Pixel Database, so you can do things not possible in Paint.Net, or even Photoshop in some cases. I am working on building a web based version now, but until it is finished there is a free install available on my website: https://datajuggler.com/Downloads/TransparencyMaker.msi Or if you are a C# programmer and / or want to become one, Microsoft Visual Studio 2019 Community edition is free, and the full source code for Transparency Maker is here: https://github.com/DataJuggler/TransparencyMaker The documentation is also available at the above project page on Git Hub. Text documentation if you prefer: 1. Open your Texture file in Paint.Net 2. Hit Control A to select all and Control + C to copy to your clipboard. 3. Under the File Menu, select New > The image size will be the size of your texture file on your clipboard. 4. Select the Paint Bucket Icon on the Toolbar, and select the color you want to use, I am using Black for my background. 5. Select a Font, I am using Cooper Black in this example, font size 96 6. Select a Text Color of Yellow, and type out Paul's waffles 7. Save the file as Paul's waffles Yellow Text.png 8. Start Transparency Maker (An Eraser Icon appears after on your desktop after install) 9. Click the Start button, which will launch a File Browser Dialog, browse for the Paul's waffles Yellow Text 10. Once the file loads in Transparency Maker, type in the following query: Hide Total > 20 * The full syntax is Hide Pixels Where, but Hide is a shortcut, and this had to be on the first line. This will hide the yellow text. 11. Save the file as Paul's waffles Transparent Text 12. Open Paint.Net and open the file above, hit Control + A followed by Control + C to select all and copy. 13. In the texture file you opened originally, add a new Layer and paste in transparent text on your clipboard. 14. Save the file in Paint.Net as Paul's waffles Black Background.png 15. Start Transparency Maker again, and open the file you just created Paul's waffles Black Background.png 16. In Transparency Maker, type the following query: Hide Total < 5 This will get rid of the black background and you can create text in any texture. If you have any questions, please ask them on them on my YouTube channel and I will do my best to answer. Transparency Maker 2.0 has since been released, and new videos are coming soon, so please subscribe to my channel if you think it is worth the price of Free. I have some other videos on Transparency Maker here: https://www.youtube.com/playlist?list=PLKrW5tXCPiX2PxrLPszDzlcEZwQG-Qb8rhttps://www.youtube.com/playlist?list=PLKrW5tXCPiX2PxrLPszDzlcEZwQG-Qb8r Paint.Net is my graphics program of choice. I created Transparency Maker because I purchase stock photos, and all come with backgrounds and some are hard or impossible to remove with Paint.Net, but with Transparency Maker it is simple, and is a great companion tool for Paint.Net. Let me know what you think, or if you have any questions or suggestions. Thanks for Paint.Net, I can't afford or figure out Photoshop. Corby / Data Juggler
  5. Thank you Pavlik, that is exactly what I want. My app is a Windows Form app, but I remember a long time ago embedding WPF in WinForms, or maybe I could reference a library. I will see if I can do that. Many thanks
  6. If you select a rectangle with your mouse, how does Paint.Net programmatically make the selection look like it rotates? You can't tell from the still image screenshot, but every second or sol, the rectangle appears to rotate clockwise. This is a programming under the hood question, not a usage of Paint.Net. I am pretty proficient in standard Usage as after 10 years this is still my favorite graphics program. Thanks if this is something anyone knows.
  7. Thanks for all your answers, I really wish you would reconsider the "Paint.Net is not designed this way"; It is very easy to create an API from any code and than expose any methods to the public; Thanks to your answer I now know a plug in will not work, so I give up, but calling methods would be easy for a public API, then I can write my own repeat methods so the tool can be extended. I still like the program, but if you can't extend it is only as good as you can make it. The price is right though.
  8. I will look at the Plug In Tutorial when I get off work, that might answer some of my questions, but I frequently have to perform the same task over and over (Example resize a set of images from a large size to a small size) or other adjustments such as resolution or to sharpen them. Is there an API to call any of the effects? Could a DLL or plug in be created that allowed C# code to call Paint DOT NET methods? Thank you for any help, I may not have enough time to create a plug in but I hate doing the same task over and over, it defeats the purpose of being a programmer.