Simon Cropp
bcbd4726a6
use var where apparent ( #972 )
* use var where apparent
* use var where apparent
* should use Rgb24
7 years ago
Simon Cropp
270a073fc6
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
30804cfefd
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
c2555b6199
fix some spelling ( #962 )
7 years ago
Simon Cropp
2c04d6b036
redundant usings ( #960 )
7 years ago
James Jackson-South
5abca49055
Master cleanup ( #952 )
* Fix gitignore and line endings
* Update README.md
7 years ago
Anton Firsov
96c3bbff79
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
34781bff3e
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
99916fb452
add more Rgba64 constructor overloads
7 years ago
Anton Firszov
5215a13cbb
fix Image.FromStream() + add tests
7 years ago
Brian Popow
65dc0ab53a
Add more pixel conversion tests
7 years ago
Brian Popow
6015c2af6b
Add additional pixel conversion tests
7 years ago
Brian Popow
039eae6a99
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
3c0d9bb487
PixelConversionModifierExtensions.ApplyCompanding() + tests
7 years ago
Anton Firszov
86ce62ed2c
rename FromVector4(...) to FromVector4Destructive(...)
7 years ago
Anton Firszov
c88f8707e9
Optimization: omit premultiplication for Bgr24 and Rgb24
7 years ago
Anton Firszov
fd3d76e78e
Inlining temporary compatibility methods (FromScaledVector4, ToScaledVector4)
7 years ago
Anton Firszov
c3d4e4d8f4
all pixel types implemented except RgbaVector
7 years ago
Anton Firszov
b4cb222203
add (failing) tests from #847
7 years ago
Anton Firszov
e19b3593de
imrpoved accuracy for Gray8 conversion
7 years ago
Anton Firszov
8e843d1f6f
add header
7 years ago
Anton Firszov
9e292fbeb7
refactor PixelOperationsTests
7 years ago
Anton Firszov
3b59b9ac2c
better docs, drop PixelExtensions, fix tests
7 years ago
Anton Firszov
437d080180
refactor Vector4 implementation code from PixelOperation<T> to Vector4Converters
7 years ago
Anton Firszov
eaa5a9779c
Rgba32 <-> Argb32 <-> Bgra32
7 years ago
Anton Firszov
ff757fb733
bitwise conversion + benchmarks WIP
7 years ago
Anton Firszov
bd78bff113
Feed Configuration to all methods in PixelOperations
7 years ago
Anton Firszov
492d2d6b10
pass Configuration to Vector4 converters in PixelOperations
7 years ago
Anton Firszov
2449309159
Span.CopyTo(...) semantics for bulk Vecto4 conversion in PixelOperations
7 years ago
Anton Firszov
11ee7f2aef
Rename PackFrom*** -> From***:
- in PixelOperations
- in T4 templates
- in tests
7 years ago
Anton Firszov
c328f6d87d
simplify IPixel method names: PackFrom*** -> From***
7 years ago
Anton Firszov
989f79c826
fix PixelOperationsTests
7 years ago
Anton Firszov
8f4e8a663a
cleanup
7 years ago
Anton Firszov
f72fcbdc0f
uniformize conversion code
7 years ago
James Jackson-South
9a9262e58f
Generate bulk pixel operations for all standard packing operations and fix conversion
7 years ago
Anton Firszov
ad659fb731
move tests
7 years ago
Anton Firszov
c087ffe468
SIMD byte -> float conversion: BulkConvertByteToNormalizedFloatFast
7 years ago
Anton Firszov
189d602fb7
BulkConvertByteToNormalizedFloat
7 years ago
James Jackson-South
61ce88eb02
Fix up pixel format tests
7 years ago
James Jackson-South
86ba2b8843
Fix up Gray8 and Gary16 tests
7 years ago
James Jackson-South
d49d74aafc
Update and normalise pixel format + disable out of date tests
7 years ago
Peter Amrehn
4c80b16f31
#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
6b70bd696f
#718 : fix Gray8Tests
7 years ago
Peter Amrehn
39b3cb708c
#718 : add pixel types Gray8 and Gray16
7 years ago
Vicente Penades
74aff0ea06
Adding more tests to cover single pixel ColorBlending and AlphaComposition functions
8 years ago
Vicente Penades
3eb0a73081
Refactored IsSolidBrushWithoutBlending into GraphicsOptions so it can be called from more places, and also allows for specific tests.
8 years ago
Vicente Penades
b005d24789
rearranged DrawImage method arguments. Fixed tests accordingly
8 years ago
Vicente Penades
96d2f6ddcc
Split PixelBlendMode enumeration into PixelColorBlendingMode and PixelAlphaCompositionMode
8 years ago
Anton Firszov
9e856a23cc
Move ImageSharp-specific memory primitives and utils to SixLabors.ImageSharp.Memory
8 years ago
James Jackson-South
1da918033b
No underscores!
8 years ago