Rick Brewster Posted June 17, 2019 Share Posted June 17, 2019 Okay so hopefully this is the last alpha build before I'm able to get a beta out the door (incl. updated translations). Just fixing up a few things that were important enough to fix quickly instead of waiting for the beta. Download link: https://www.getpaint.net/files/zip/test/paint.net.4.107.7107.34783.install.zip Note: Give me a few minutes and this will also be available via the built-in updater. Changes since build 7104: Improved: TGA images now load about 4x faster (thanks @null54!) Fixed: Clipboard extension methods now available for plugins to use Fixed a crash at startup when loading some FileType plugins Improved: Slightly increased the size of the Settings dialog to reduce the need for scrolling in a few important situations 1 1 The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
null54 Posted June 17, 2019 Share Posted June 17, 2019 Here is an example of how the new IClipboardService can be used, this example is from the updated CodeLab template. Spoiler private Surface clipboardSurface = null; private bool readClipboard = false; protected override void OnDispose(bool disposing) { if (disposing) { // Release any surfaces or effects you've created. if (clipboardSurface != null) clipboardSurface.Dispose(); clipboardSurface = null; } base.OnDispose(disposing); } void PreRender(Surface dst, Surface src) { if (!readClipboard) { readClipboard = true; clipboardSurface = Services.GetService<IClipboardService>().TryGetSurface(); } } // Here is the main render loop function 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 CurrentPixel = src[x,y]; if (IsCancelRequested) return; // If clipboard has an image, get it if (clipboardSurface != null) { CurrentPixel = clipboardSurface.GetBilinearSampleWrapped(x, y); } // TODO: Add additional pixel processing code here dst[x,y] = CurrentPixel; } } } 1 1 Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
Pixey Posted June 20, 2019 Share Posted June 20, 2019 I think the lag, on opening Custom Mini Brushes is taking a bit longer than usual to open. I made a video so one can judge. https://www.dropbox.com/s/99pr2zsek9046yu/ice_video_20190620-103356.mp4?dl=0 How I made Jennifer & Halle in Paint.net My Gallery | My Deviant Art "Rescuing one animal may not change the world, but for that animal their world is changed forever!" anon. Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 20, 2019 Author Share Posted June 20, 2019 Well then that's a problem with Custom Mini Brushes Or things just weren't cached yet or something. Nothing I've done in the app should affect that at this time. The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Rick Brewster Posted June 21, 2019 Author Share Posted June 21, 2019 New update incoming -- closing thread The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts