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
Simon Cropp
2734847e2e
fix some spelling ( #957 )
* fix some spelling
* more typos
* more typos
* more typos
* more typos
* more typos
* linearSegment
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
Fredrik Eilertsen
a842e98191
Throw UnkownFormatException on Image.Load ( #932 )
* Throw ImageFormatException on load
* Unseal class and make constructor internal
- This is so that no one can new it up / inherit it outside of the assembly
* Add new exception for distinguish between different exception
- This will be used on image.load operations with invalid image streams
* ImageFormatException -> UnkownImageFormatException
* Add Image.Load throws exception tests
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
fcaaa6fa39
full coverage for Image.Load (I hope)
7 years ago
Anton Firszov
52c4a3d417
fix Image.FromStream() + add tests
7 years ago
Anton Firszov
75973d470b
pixel-agnostic ResizeProcessor
7 years ago
Jason Nelson
48bac7b334
Update metadata names ( #879 )
7 years ago
Anton Firszov
bc79b18817
Optimization: do not initialize pixel buffer in JpegDecoder
7 years ago
James Jackson-South
859d331234
Add Clone overloads for new configuration.
7 years ago
Anton Firszov
a8c44f95dd
skip WrapSystemDrawingBitmap_* on most environments to avoid sporadic test failures
8 years ago
Anton Firszov
390691f209
WrapMemory<T>(IMemoryOwner<T>) + additional System.Drawing test case
8 years ago
Anton Firszov
844740725e
made WrapMemory() public + test case demonstrating using Image.WrapMemory() to draw over a System.Drawing.Bitmap instance
8 years ago
Anton Firszov
80a7b9f14a
replace IBuffer<T> with IMemoryOwner<T>
8 years ago
James Jackson-South
fc2dc1b69d
Update ImageSharp Namespaces.
8 years ago
Scott Williams
e1779325fb
remove `SavePixelData()` apis in favour of `GetPixelSpan()`
8 years ago
Anton Firszov
7583a48415
better LoadPixelData tests
8 years ago
Anton Firszov
ccb3513663
ReadOnlySpan<byte> overloads for Image.DetectFormat()
8 years ago
Anton Firszov
e63535ee69
refactor tests for DetectFormat
8 years ago
Anton Firszov
78bb139128
common test cases for Image.Load(byte) and Image.Load(span) overloads
8 years ago
Anton Firszov
cabce9c49a
clean-up and isolate image load tests
8 years ago
Anton Firszov
9ab51ff3b2
IBuffer<T>.IsMemoryOwner, Buffer2D<T>.SwapOrCopyContent()
8 years ago
Anton Firszov
441f0365a6
Image.WrapMemory works
8 years ago
Anton Firszov
2956d422e0
unskipping CloneAs_ToBgr24
8 years ago
James Jackson-South
71d5819d94
Use Configuration over MemoryManager for ImageFrame<TPixel>
8 years ago
Anton Firszov
711844b378
skipping CloneAs_ToBgr24 before it drives us mad (see #576 )
8 years ago
Anton Firszov
a9816fd937
use overloading in ImageFrameCollection + more tests for API-s affected by the PR
8 years ago
woutware
aa4a05719f
Processed review comments, moved Image.ClearColor to ImageFrame.BackgroundColor.
8 years ago
woutware
5f599e6227
Performance improvements.
Ditched the use of modulo (%). Modulo is slow, and if you use it to just get the lower 8 bits (1 byte), you can just directly cast to byte.
Also moved one if < out of the loop for speed. The less branching the better.
Similarly replaced an if < 128 by cast to sbyte and taking its abs value.
Performance gain in writing to PNG file seems to be roughly 20% (release mode, 1000x1000 bitmap).
In ImageFramesCollectionTests I've set the culture to en-US to ensure getting english exception texts.
8 years ago
Jason Nelson
70abc75bbf
Gaurd agaisnt null data when adding a new ImageFrame from data
8 years ago
Jason Nelson
4591f9e0c3
Update System.Memory to preview2
8 years ago
James Jackson-South
f4a528f413
Simplify CloneAs()
8 years ago
James Jackson-South
0e8220294b
Use non-generic IQuantizer for image formats
8 years ago
James Jackson-South
023176d0b9
Move Rgba32 inline with other pixel formats
8 years ago
James Jackson-South
6101a14b94
Refactor Image, ImageFrame + IImage
8 years ago
James Jackson-South
a1f2d063f3
Transforms
8 years ago
James Jackson-South
b19471ab4a
Overlays and base processors
8 years ago
Vicente Penades
ced881cae9
removed ImageFormat redirect methods from Configuration.
8 years ago
James Jackson-South
2a022bf366
Use Size
8 years ago
James Jackson-South
28c8e4cb7d
Ensure Bounds() is accurate per operation
8 years ago
James Jackson-South
2cc76f02c8
Disable those randomly failing tests on Travis, they're going soon anyway.
8 years ago
James Jackson-South
1ef8b0b922
Temp disable randomly failing test.
8 years ago
Anton Firszov
d1872c5d0c
removed PixelArea<T>!
8 years ago
Anton Firszov
3819c756a9
dropping MemoryManager ctr. argument:
PngEncoder, WuQuantizer, ShapeRegion, ShapePath
8 years ago
James Jackson-South
e91863e2f7
Fix all failing tests
8 years ago
James Jackson-South
eba1e91fa1
Add simple clone test
8 years ago
Lauri Kotilainen
f1412d3c76
- Use Configuration.Default.MemoryManager in tests
8 years ago