Simon Cropp
564348631f
use var where apparent ( #972 )
* use var where apparent
* use var where apparent
* should use Rgb24
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
Simon Cropp
fb033fe0b6
remove unused variables and methods ( #963 )
* remove unused variables and methods
* remove some redundant variables
* remove some redundant variables
* redundant variables
* Update DrawTextOnImageTests.cs
* Minor optimizations
* cleanup
7 years ago
Simon Cropp
aac8eae64a
fix some spelling ( #962 )
7 years ago
Simon Cropp
edeaf7d9a6
redundant usings ( #960 )
7 years ago
James Jackson-South
7196b43fb7
Master cleanup ( #952 )
* Fix gitignore and line endings
* Update README.md
7 years ago
Anton Firsov
a48de6301b
Introduce non-generic ImageFrameCollection ( #941 )
* temporarily disable target frameworks
* drop DelegateProcessor
* drop IImageProcessingContext<TPixel>
* drop NamedColors<T>
* drop ColorBuilder<T>
* drop the *Base postfix for clean class hierarchies
* adding basic skeletons
* non-generic ImageFrameCollection API definition
* non-generic ImageFrameCollection tests
* cleanup + docs + more tests
* implement ImageFrameCollection methods
* tests for generic PixelOperations.To<TDest>()
* experimental implementation
* fix .ttinclude
* generate generic From<TSourcePixel>(...)
* fix RgbaVector <--> BT709 Gray pixel conversion
* Gray8 and Gray16 using ConvertFromRgbaScaledVector4() by default
* fixed all conversion tests
* ConstructGif_FromDifferentPixelTypes
* fix xmldoc and other StyelCop findings
* re-enable all target frameworks
* fix NonGenericAddFrame() and NonGenericInsertFrame()
* fix remaining bugs
7 years ago
Anton Firsov
b00b949141
API cleanup (related to #907 ) ( #911 )
* temporarily disable target frameworks
* drop DelegateProcessor
* drop IImageProcessingContext<TPixel>
* drop NamedColors<T>
* drop ColorBuilder<T>
* drop the *Base postfix for clean class hierarchies
* re-enable target frameworks
* use MathF in gradient brushes
* Move PngFilterMethod to the correct namespace.
7 years ago
Anton Firszov
b8d47cbd32
add more Rgba64 constructor overloads
7 years ago
Anton Firszov
52c4a3d417
fix Image.FromStream() + add tests
7 years ago
Brian Popow
07670cb0d1
Add more pixel conversion tests
7 years ago
Brian Popow
f70b137981
Add additional pixel conversion tests
7 years ago
Brian Popow
b0f6b73faa
Add support for encoding 16 bit per pixel bitmaps ( #899 )
* Implemented encoding of 16 bits per pixel bitmaps
* Add unit tests for 16 bit encoding and Bgra5551 conversion
* Add additional Bgra5551 pixel conversion tests
* Add Bgra5551 tests for Short2/4 and HalfVector2/4
* Use scaled vector conversion
7 years ago
Anton Firszov
f455dad3f1
PixelConversionModifierExtensions.ApplyCompanding() + tests
7 years ago
Anton Firszov
4a0b10080d
rename FromVector4(...) to FromVector4Destructive(...)
7 years ago
Anton Firszov
37563cca01
Optimization: omit premultiplication for Bgr24 and Rgb24
7 years ago
Anton Firszov
70c4e117f1
Inlining temporary compatibility methods (FromScaledVector4, ToScaledVector4)
7 years ago
Anton Firszov
1a922f6e14
all pixel types implemented except RgbaVector
7 years ago
Anton Firszov
d126b8591e
add (failing) tests from #847
7 years ago
Anton Firszov
25bc074273
imrpoved accuracy for Gray8 conversion
7 years ago
Anton Firszov
633c212bdd
add header
7 years ago
Anton Firszov
16018e5c6a
refactor PixelOperationsTests
7 years ago
Anton Firszov
09de1b1cde
better docs, drop PixelExtensions, fix tests
7 years ago
Anton Firszov
31369c7435
refactor Vector4 implementation code from PixelOperation<T> to Vector4Converters
7 years ago
Anton Firszov
96d0ae80b9
Rgba32 <-> Argb32 <-> Bgra32
7 years ago
Anton Firszov
8dce0c740c
bitwise conversion + benchmarks WIP
7 years ago
Anton Firszov
53ac430e7e
Feed Configuration to all methods in PixelOperations
7 years ago
Anton Firszov
ca60ecf7f4
pass Configuration to Vector4 converters in PixelOperations
7 years ago
Anton Firszov
ebff0a51e1
Span.CopyTo(...) semantics for bulk Vecto4 conversion in PixelOperations
7 years ago
Anton Firszov
8ebe390c32
Rename PackFrom*** -> From***:
- in PixelOperations
- in T4 templates
- in tests
7 years ago
Anton Firszov
d4be172dcc
simplify IPixel method names: PackFrom*** -> From***
7 years ago
Anton Firszov
876f230a84
fix PixelOperationsTests
7 years ago
Anton Firszov
0f4f822790
cleanup
7 years ago
Anton Firszov
3e5325e2b9
uniformize conversion code
7 years ago
James Jackson-South
1c2aee03a6
Generate bulk pixel operations for all standard packing operations and fix conversion
7 years ago
Anton Firszov
281c52786a
move tests
7 years ago
Anton Firszov
af7d96d214
SIMD byte -> float conversion: BulkConvertByteToNormalizedFloatFast
7 years ago
Anton Firszov
260a8f8c9a
BulkConvertByteToNormalizedFloat
7 years ago
James Jackson-South
1f7df77c5c
Fix up pixel format tests
7 years ago
James Jackson-South
c349c2b248
Fix up Gray8 and Gary16 tests
7 years ago
James Jackson-South
2950219287
Update and normalise pixel format + disable out of date tests
7 years ago
Peter Amrehn
58a5232e72
#718 : extend IPixel interface and implement it everywhere, ...
AND add unit tests
AND fix Gray16 implementation (constructor takes ushort, not byte)
AND fix Gray8 and Gray16 Pack (do not scale by sum)
7 years ago
Peter Amrehn
904fcd5c53
#718 : fix Gray8Tests
7 years ago
Peter Amrehn
9720fea2da
#718 : add pixel types Gray8 and Gray16
7 years ago
Vicente Penades
2042f1feed
Adding more tests to cover single pixel ColorBlending and AlphaComposition functions
8 years ago
Vicente Penades
d4ca89027b
Refactored IsSolidBrushWithoutBlending into GraphicsOptions so it can be called from more places, and also allows for specific tests.
8 years ago
Vicente Penades
1035f23908
rearranged DrawImage method arguments. Fixed tests accordingly
8 years ago
Vicente Penades
b189ff7746
Split PixelBlendMode enumeration into PixelColorBlendingMode and PixelAlphaCompositionMode
8 years ago
Anton Firszov
968a9cb186
Move ImageSharp-specific memory primitives and utils to SixLabors.ImageSharp.Memory
8 years ago
James Jackson-South
29c01dab6c
No underscores!
8 years ago