Skip to content

Ported 'vignette' effect from old version of Paint.NET#881

Merged
cameronwhite merged 26 commits into
PintaProject:masterfrom
Lehonti:port/vignette
Jun 21, 2024
Merged

Ported 'vignette' effect from old version of Paint.NET#881
cameronwhite merged 26 commits into
PintaProject:masterfrom
Lehonti:port/vignette

Conversation

@Lehonti

@Lehonti Lehonti commented Jun 18, 2024

Copy link
Copy Markdown
Contributor


namespace Pinta.Effects;

internal static class SrgbUtility

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For organization, perhaps this should go under the Utilities folder rather than Effects?

[Caption ("Center Offset")]
public PointI CenterOffset { get; set; }

[MinimumValue (10), MaximumValue (400)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the other PR, this should use the matching label that we decide on

Comment thread Pinta.Effects/Effects/VignetteEffect.cs Outdated
public sealed class VignetteData : EffectData
{
[Caption ("Center Offset")]
public PointI CenterOffset { get; set; }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably just label this "Offset" to match most other effects.

[Caption ("Radius (as a percentage)")]
public int RadiusFactor { get; set; } = 50;

[MinimumValue (0), MaximumValue (1)]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be a percentage for consistency with the radius parameter?

@Lehonti

Lehonti commented Jun 20, 2024

Copy link
Copy Markdown
Contributor Author

@cameronwhite I implemented your suggestions 👍

@Lehonti

Lehonti commented Jun 20, 2024

Copy link
Copy Markdown
Contributor Author

The 'codespell' build is failing but from the error messages (and the fact that all other builds are successful, and that it failed even after I reverted the changes) I don't think it's related to my changes.

@cameronwhite

Copy link
Copy Markdown
Member

Yeah it looks like some intermittent build failure - I rescheduled the build and it's working now

@cameronwhite cameronwhite merged commit 06be3f7 into PintaProject:master Jun 21, 2024
@Lehonti Lehonti deleted the port/vignette branch June 21, 2024 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants