James Jackson-South
ba329d3bdd
Delete Rgba32 named colors
6 years ago
James Jackson-South
8cd722cfc5
Revert `using` declaration changes for until we establish guidelines.
6 years ago
Brian Popow
51230a776f
Change WithTestPatternImageAttribute to WithTestPatternImagesAttribute
6 years ago
Brian Popow
f60bc937de
Use using declarations to reduce nesting
6 years ago
Brian Popow
7b052c8076
Fix stylecop warnings in the test project
6 years ago
James Jackson-South
c24b364be1
Merge namespaces
6 years ago
James Jackson-South
03aa2fb775
Add new target frameworks
6 years ago
Scott Williams
a56287cb85
remove all drawing except draw image
6 years ago
James Jackson-South
dfd2b641d5
Simplify format specific metadata retrieval.
6 years ago
James Jackson-South
a35b73245a
Gray8 => L8
6 years ago
Simon Cropp
bcbd4726a6
use var where apparent ( #972 )
* use var where apparent
* use var where apparent
* should use Rgb24
7 years ago
Simon Cropp
e23d8df485
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
c992db17fe
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
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
Simon Cropp
aa6d2ab997
fix some spelling ( #957 )
* fix some spelling
* more typos
* more typos
* more typos
* more typos
* more typos
* linearSegment
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
Fredrik Eilertsen
7d4e461a19
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
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
35640879f2
full coverage for Image.Load (I hope)
7 years ago
Anton Firszov
5215a13cbb
fix Image.FromStream() + add tests
7 years ago
Anton Firszov
7fae100254
pixel-agnostic ResizeProcessor
7 years ago
Jason Nelson
fca697206a
Update metadata names ( #879 )
7 years ago
Anton Firszov
165af7a261
Optimization: do not initialize pixel buffer in JpegDecoder
7 years ago
James Jackson-South
6e47624413
Add Clone overloads for new configuration.
7 years ago
Anton Firszov
2dc09c9637
skip WrapSystemDrawingBitmap_* on most environments to avoid sporadic test failures
8 years ago
Anton Firszov
f3d41f71a3
WrapMemory<T>(IMemoryOwner<T>) + additional System.Drawing test case
8 years ago
Anton Firszov
7c53bc1785
made WrapMemory() public + test case demonstrating using Image.WrapMemory() to draw over a System.Drawing.Bitmap instance
8 years ago
Anton Firszov
12bcdbb49a
replace IBuffer<T> with IMemoryOwner<T>
8 years ago
James Jackson-South
0d2214923f
Update ImageSharp Namespaces.
8 years ago
Scott Williams
6ff3aed4fb
remove `SavePixelData()` apis in favour of `GetPixelSpan()`
8 years ago
Anton Firszov
8626ed120a
better LoadPixelData tests
8 years ago
Anton Firszov
6e80236178
ReadOnlySpan<byte> overloads for Image.DetectFormat()
8 years ago
Anton Firszov
de3e150552
refactor tests for DetectFormat
8 years ago
Anton Firszov
ec0e78b147
common test cases for Image.Load(byte) and Image.Load(span) overloads
8 years ago
Anton Firszov
499b0476da
clean-up and isolate image load tests
8 years ago
Anton Firszov
f6dd91922e
IBuffer<T>.IsMemoryOwner, Buffer2D<T>.SwapOrCopyContent()
8 years ago
Anton Firszov
5e428ed458
Image.WrapMemory works
8 years ago
Anton Firszov
2694ec741d
unskipping CloneAs_ToBgr24
8 years ago
James Jackson-South
48c4003896
Use Configuration over MemoryManager for ImageFrame<TPixel>
8 years ago
Anton Firszov
41ef5ee4be
skipping CloneAs_ToBgr24 before it drives us mad (see #576 )
8 years ago
Anton Firszov
847b21d44f
use overloading in ImageFrameCollection + more tests for API-s affected by the PR
8 years ago
woutware
cff22588a9
Processed review comments, moved Image.ClearColor to ImageFrame.BackgroundColor.
8 years ago
woutware
c7e6d19cc1
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
ec1291f3ff
Gaurd agaisnt null data when adding a new ImageFrame from data
8 years ago
Jason Nelson
b62c98cfc9
Update System.Memory to preview2
8 years ago
James Jackson-South
55fbcb0fb8
Simplify CloneAs()
8 years ago
James Jackson-South
69516e110b
Use non-generic IQuantizer for image formats
8 years ago