Skip to content

Conversation

@antonfirsov
Copy link
Member

@antonfirsov antonfirsov commented Apr 30, 2018

Prerequisites

  • I have written a descriptive pull-request title
  • I have verified that there are no overlapping pull-requests open
  • I have verified that I am following matches the existing coding patterns and practice as demonstrated in the repository. These follow strict Stylecop rules 👮.
  • I have provided test coverage for my change (where applicable)

Description

I just realized that FillProcessor and FillRegionProcessor are two different things, so the tests in #553 do not cover FillProcessor thus are insufficient to safely merge #552.
This PR:

  • Changes FillSolidBrushTests to cover most of the SolidBrush scenarios/parameters
  • Fixes a bug in FillProcessor: unlike in FillRegionProcessor, BlendPercentage was applied two times: once in FillProcessor, once in SolidBrushApplicator. The easiest way to see this is to undo the change and run BlendFillColorOverBackround.

Copy link
Member

@JimBobSquarePants JimBobSquarePants left a comment

Choose a reason for hiding this comment

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

LGTM

@antonfirsov antonfirsov merged commit 6431723 into master May 1, 2018
@antonfirsov antonfirsov deleted the af/FillSolidBrushTests branch May 10, 2018 22:00
antonfirsov added a commit to antonfirsov/ImageSharp that referenced this pull request Nov 11, 2019
better FillSolidBrushTests + bugfix in FillProcessor
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.

4 participants