Brian Popow
1bb93523a5
Change clipLimit to be an absolute value. Fixes issue #994
7 years ago
Xavier Cho
1eea497e74
Accept points instead of line segments as constructor argument
Note that this is a breaking change.
7 years ago
Turnerj
bec033603e
Fix horizontally out-of-bounds error when drawing text
7 years ago
Xavier Cho
6842408316
Ignore invalid gradient positions rather than throwing an error
There can be such cases where it fails to find intersection points for
a given position, especially when the polygon is small.
Such an input would result in an error previously, but now it renders
correctly.
7 years ago
Xavier Cho
1314d001f2
Remove a redundant check for the paint boundary
7 years ago
ip75
695171725b
warnings-errors
7 years ago
ip75
dbf8868098
fix comments cosmetic warning-errors
7 years ago
Simon Cropp
99a74ebdc6
use SUPPORTS_EXTENDED_INTRINSICS to filter out some BasicIntrinsics256 methods
7 years ago
James Jackson-South
2ea69b4a75
Refactor helper to reduce code duplication
7 years ago
James Jackson-South
a3f39ee6d3
Fix #999 and add tests
7 years ago
Simon Cropp
b6fcda1dce
remove patternVector in patternBrush
7 years ago
James Jackson-South
ac9b1d0f97
Fix #997
7 years ago
James Jackson-South
19c7f178d1
Update dependencies and submodule
7 years ago
ip75
4697564541
image lightness filter
7 years ago
James Jackson-South
221000ed03
Clean up scanline decoding code.
7 years ago
James Jackson-South
a6fd96b7ca
Refactor helper to reduce code duplication
7 years ago
James Jackson-South
dbc5c76eb1
Fix #1004
7 years ago
James Jackson-South
0cc178d662
Fix #999 and add tests
7 years ago
James Jackson-South
5056744ebb
Fix #997
7 years ago
Xavier Cho
43d8241641
Implement gradient brush similar to PathGradientBrush ( #969 ) ( #989 )
* Implement gradient brush similar to PathGradientBrush (#969 )
A gradient brush implementation that works similar to
System.Drawing.Drawing2D.PathGradientBrush.
This fixes #969 , but only convex paths are supported for now.
* Update submodule to add test fixtures for #989
* Performance optimization
Use LengthSquared() instead of Length() when it's possible.
Avoid unnecessary ordering of elements.
* Avoid using LINQ in a hotspot
* Validate arguments for the public constructor
7 years ago
James Jackson-South
2ba3194151
Update dependencies and submodule
7 years ago
James Jackson-South
25daf98fa8
[SL.Core] Use shared source MathF and HashCode
7 years ago
James Jackson-South
68dca4fddb
[SL.Core] Update submodule and fix warnings.
7 years ago
Sergio Pedri
a79c203b48
Fixed XML docs for RgbaVector pixel type ( #992 )
7 years ago
Anton Firszov
278a79e500
[SL.Core] use shared .editorconfig and stylecop.json
7 years ago
Anton Firszov
29046532a2
[SL.Core] Standards -> SharedInfrastructure
7 years ago
Anton Firsov
9f93b09a11
Patch MemoryOwnerExtensions to fix #987
7 years ago
James Jackson-South
02d1f1b250
Implement IDisposable in IImageProcessor<TPixel> instances. ( #990 )
* Implement IDisposable and ensure inheritance calls base
* add ImageProcessingContextTests and move some other test classes
* loosen up tests and leave TODO notes
7 years ago
Sergio Pedri
13989ac126
Processors refactoring ( #983 )
* Added new properties to ImageProcessor<TPixel>
* Fixed constructors for convolution processors
* Fixed constructors for binarization processors
* Fixed constructor for dithering processor
* Fixed constructors for effects processors
* Fixed constructor for filter processor
* Fixed constructor for normalization processor
* Fixed constructors for overlay processors
* Fixed constructor for quantization processor
* Fixed constructors for transforms processors
* Updated CreatePixelSpecificProcessor<TPixel> definition
* Fixed convolution processors creation
* Fixed leftover dithering processor constructor
* Fixed another leftover dithering processor constructor
* Fixed dithering processors creation
* Fixed effects processors creation
* Fixed filters processor
* Fixed normalization processors creation
* Fixed overlays processors creation
* Fixed quantizer processor creation
* Fixed constructors for some remaining processors
* Fixed transform processors creation
* ImageProcessor class refactored
* Renamed some parameters
* Convolution processors refactored
* Refactored filters and dithering processors
* Refactored normalization processors
* Overlays processors refactored
* Renamed some parameters
* CloningImageProcessor class refactored
* Transforms processors refactored
* Updated DefaultImageProcessingContext class
* Src builds, tests still require updating.
* Fix tests
* Removed unnecessary local variable
7 years ago
Simon Cropp
79f5ff5bd5
remove some redundant constructor overloads from exceptions ( #979 )
* remove some redundant constructor overloads from exceptions
* re add ImageProcessingException ctor
only used in release
7 years ago
Brian Popow
3013857bf9
Changed processing of border rows and columns to use the tile count and process only a maximum of tileCount - 1 tiles
7 years ago
Anton Firszov
56277c4735
[SL.Core] do not share internals across SixLabors projects
7 years ago
Anton Firszov
eb40549006
[SL.Core] use shared guards from standards
7 years ago
Anton Firszov
ff972defaf
[SL.Core] harmonize Guard + DebugGuard code and tests
7 years ago
Anton Firszov
20aef1b6da
[SL.Core] Extend Guard and DebugGuard
7 years ago
Simon Cropp
e809d514fa
remove SteppedRange ( #980 )
7 years ago
Simon Cropp
52caddf0a4
remove some redundant usings ( #976 )
7 years ago
Simon Cropp
8fc01b3af5
cache max value
7 years ago
Simon Cropp
08f1b08d5a
cache max in ConvertToRgba
7 years ago
Simon Cropp
5a9b87414b
use SUPPORTS_EXTENDED_INTRINSICS to filter out some BasicIntrinsics256 methods
7 years ago
Simon Cropp
3f4378381e
ExifTagDescriptionAttribute doesnt need fields
since the reflection is done on the constructor arguments
7 years ago
Simon Cropp
91a4ed96a1
remove patternVector in patternBrush
7 years ago
Simon Cropp
564348631f
use var where apparent ( #972 )
* use var where apparent
* use var where apparent
* should use Rgb24
7 years ago
Brian Popow
26042ec82c
Add comment about when to use clipping
7 years ago
Simon Cropp
a16c514846
aviod multiple array lookup
7 years ago
Simon Cropp
b1e42b6ad2
remove redundant ParallelOptions
7 years ago
Simon Cropp
f115c160fc
remove some redundant variables and type params ( #971 )
* remove redundant variable init
* redundant variables
* remove redundant tileY variable
* remove redundant sum variable
* redundant mcu variable
* redundant type params
* Revert "remove redundant sum variable"
This reverts commit 21de86c82f .
7 years ago
Brian Popow
726b6ab7c2
Remove unnecessary tileX and tileY declarations
7 years ago
Anton Firsov
29099949ca
Throw ObjectDisposedException when trying to operate on a disposed image ( #968 )
* disable multitargeting + TreatWarningsAsErrors to for fast development
* Check if image is disposed
in significant Image and Image<T> methods
* Mutate / Clone: ensure image is not disposed
* Revert "disable multitargeting + TreatWarningsAsErrors to for fast development"
This reverts commit 9ad74f76f6 .
7 years ago
Simon Cropp
6f1134102c
Cleanup ( #965 )
* redundant ()
* redundant stirng interpolation
* use method groups
* redundant unsafe
* redundant qualifiers
* redundant ()
* redundant init
* redundant init
* redundant casts
* redundant casts
7 years ago