Anton Firszov
b12e1c47d8
merge back GetRowSpan and GetRowSpanUnchecked
6 years ago
Anton Firszov
80e0eee04f
change AdvancedImageExtensions public API-s
6 years ago
James Jackson-South
50a693791f
Delete Rgba32 named colors
6 years ago
Anton Firszov
da65467918
Actually resize a 30k x 30k image
6 years ago
James Jackson-South
15a7a557f2
Revert `using` declaration changes for until we establish guidelines.
6 years ago
Brian Popow
f897ab6f8d
Change WithTestPatternImageAttribute to WithTestPatternImagesAttribute
6 years ago
Brian Popow
38454f8fde
Use using declarations to reduce nesting
6 years ago
Brian Popow
43cbdab113
Fix stylecop warnings in the test project
6 years ago
James Jackson-South
6384f44501
Merge namespaces
6 years ago
James Jackson-South
9dc422d8a1
Add new target frameworks
6 years ago
Scott Williams
728342010e
remove all drawing except draw image
6 years ago
James Jackson-South
5a7091e516
Simplify format specific metadata retrieval.
6 years ago
James Jackson-South
372c691d52
Gray8 => L8
6 years ago
Simon Cropp
564348631f
use var where apparent ( #972 )
* use var where apparent
* use var where apparent
* should use Rgb24
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
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
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