-
Posts
20,658 -
Joined
-
Last visited
-
Days Won
378
Everything posted by Rick Brewster
-
Installing PDN under Wine in Linux/Mac.
Rick Brewster replied to dipstick's topic in Paint.NET Discussion and Questions
This has been possible for ages, it's not news It's not supported (or even supportable) obviously, and doesn't even work quite right as you see. As far as I've seen there's been no movement on WINE's ability to support PDN 4.0+, which was released in mid-2014. For some reason they haven't managed to fully implement Direct2D or UIAnimation in the last ... decade. Direct2D is more understandable, but UIAnimation? *shakes head* -
paint.net installation error 1618
Rick Brewster replied to timber_ridge's topic in Troubleshooting & Bug Reports
I said it could be as simple as a Windows Update being installed. "Another installation is in progress" couldn't refer to PDN in this case. But, in any event, Windows isn't lying. Another installation ... of something ... is in progress. -
The image is too big .... different formats have different maximum sizes. There is no way around this. There is nothing you can do other than reduce the size of your image. PDN has no maximum size, although File->New won't let you go above 262,144px (you'd need like 512GB of RAM to work with an image like that and it would be suuuuuuuuuuuuuuuuuuuuuuuper duper slow ...)
-
ICC profile plugin
Rick Brewster replied to ManuelHerman19's topic in Paint.NET Discussion and Questions
It will be possible to work with the color profile in the upcoming 5.1 release. A significant portion of the "back end" rendering engine has been upgraded and rewritten to accommodate this and to get ready for future upgrades (e.g. high bit-depth support, and maybe even HDR support). ("c2" seems to be a size-optimized sRGB-ish profile that I've seen many images using ...) -
@Timo Kinnunen There's a few things here. First, SampleMapRenderer is a bit picky due to some low-level internal Direct2D particulars. You will need to wrap Environment.SourceImage by using deviceContext.CreateBufferedImage(), and use that image instead of Environment.SourceImage. I've already seen this happen in another situation where it throws an InvalidGraphConfiguration, and I put in a special error message to direct folks to CreateBufferedImage(), but it looks like the effect graph you're creating is resulting in a cyclic graph instead. I'm not entirely sure how/why, but the DynamicImage framework (which SampleMapRenderer is based on) does some really really crazy stuff to achieve what it's doing, and it may be putting Direct2D into a state that just doesn't make sense. Second, SampleMapRenderer is definitely not the right tool to use for what you're doing. SampleMapRenderer is meant for distortion effects, like Effects -> Distort -> Dents, which sample pixels from all over the image. In order to achieve this, it requires a LOT of processing power in the general case (the internal effects have access to a property that helps to massively reduce that). You're only doing a sampling offset of +/- 0.25 pixels, so SMR is horrendously inefficient. Since your sampling is so simple, try using DisplacementMapEffect instead ( PDN docs, MSFT docs ). Outside of CodeLab, this would probably be best done with a custom shader written with ComputeSharp.D2D1.
-
[BUG] not saving any items in 'Open Recent'
Rick Brewster replied to Ltek's topic in Troubleshooting & Bug Reports
Glad to hear it! -
[BUG] not saving any items in 'Open Recent'
Rick Brewster replied to Ltek's topic in Troubleshooting & Bug Reports
Those could easily just be left over from old versions from when they were current -
paint.net installation error 1618
Rick Brewster replied to timber_ridge's topic in Troubleshooting & Bug Reports
I would not go exploring the registry and deleting things. That is often a recipe for making things worse. -
[BUG] not saving any items in 'Open Recent'
Rick Brewster replied to Ltek's topic in Troubleshooting & Bug Reports
What version of Paint.NET are you on though? -
paint.net installation error 1618
Rick Brewster replied to timber_ridge's topic in Troubleshooting & Bug Reports
Should just need a reboot, not a forced uninstall. "Another installation is already in progress" can just mean something as simple as Windows Update doing some stuff in the background. -
Cursor Size when hovering over the canvas
Rick Brewster replied to Macktek's topic in Paint.NET Discussion and Questions
The MSI is generally only used when doing a network-wide deployment, like in a school or business ("enterprise") or something like that. It's not really a good option for individual installs. -
Error when trying to print
Rick Brewster replied to NorthernPurpleUnicorn's topic in Troubleshooting & Bug Reports
This is also an error that we've seen happen when someone uses one of those "slim down your Windows install! get rid of all the bLoAAAAtttt!" utilities. If you uninstall WIA, you can't use WIA to print. -
There are also these effects: https://paintdotnet.github.io/apidocs/api/PaintDotNet.Direct2D1.Effects.html The effects you can chain together are Direct2D effects. You can write a Paint.NET effect (yes the term "effect" is overloaded) that chains them together, but you can't combine Paint.NET effects like that. But that shouldn't matter because all of the bulit-in Paint.NET effects are essentially UI wrappers for the Direct2D effects. The effects whose names begin with "Pdn" are the Direct2D effects that power the built-in Paint.NET effects that you see in the app menus.
-
You can use Environment.GetSourceBitmapBgra32(), which will give you an IEffectInputBitmap<ColorBgra32>. Then call Lock() to get the IBitmapLock<ColorBgra32>(). Then use AsRegionPtr() to get it as a RegionPtr<ColorBgra32> which you can just index into, e.g. region[x, y]. Then just compare region[x, y].A == 255 to determine if it's opaque. Note that this works fine for querying the alpha channel, as the alpha channel is invariant with respect to color space (sRGB vs. linear scRGB vs. whatever other color profile they might have on the image!). If you want to query the RGB values, they won't line up with the color space you're using in the GPU effect, and it'll take some extra work to determine the right thing to do. So that's a topic for another time.
-
We do not provide any support unless you're using the latest version of Paint.NET.