antonfirsov
09f2ad0b14
re-added & refactored TestUtilities
9 years ago
Dirk Lemstra
b13521114c
Refactored TestImages again so they can be used in Attributes.
9 years ago
James Jackson-South
ed1850ebec
Waaaay to kill testing speed!
9 years ago
James Jackson-South
2272780223
Add new test file.
The octree quantizer does not like this file. A couple of frame
backgrounds turn out the wrong color. When you resize though all is
fixed!?
9 years ago
Dirk Lemstra
6e0a9b49db
Changed the test images from string into TestFile.
9 years ago
James Jackson-South
1fd9afcba6
Decode CMYK and YCCK images Fix #40
We can decode the images but there is a loss of accuracy due to a lack
of ICC support.
9 years ago
Scott Williams
3f0f39c1bc
Add drawing methods.
Adds a 4 `IPath`s;
- `Path` : a generic open path described by an arbitrary collection of `ILineSegments` which are closed.
- `Polygon` : a generic closed path described by an arbitrary collection of `ILineSegments` which are closed.
Adds 2 `ILineSegment`s;
- `LinearLineSegment` : a segment made up of control points representing straight lines.
- `BezierLineSegment` : a path made up of control points describing a bezier path.
Adds 4 `IShape`s
- `Polygon` : a generic closed path described by an arbitrary collection of `ILineSegments` which are closed.
- `LinearPolygon` : a shape made up of control points representing straight lines.
- `BezierPolygon` : a shape made up of control points describing a set of bezier curves which are closed by a straight line
- `ComplexPolygon` : a polygon described by one or more `IShape`s as either outlines or holes.
All `IShape`s can be represents as a collection of `IPath`.
Adds 2 `IBrush`s
- `SolidBrush` : described by a `TColor`
- `Patternbrush` : described by a foreground and background `TColor` and a pattern.
Adds 1 `IPen`:
- `Pen` : described by an `IBrush` a width/thickness to draw the line and an optional pattern.
Adds 3 Image Processors
- `FillProcessor` : flood fills the image with an `IBrush`.
- `FillShapeProcessor` : flood fills inside an `IShape`.
- `DrawPathProcessor` : draws a collection of `IPath`s or and `IShape`s onto the image using an `IPen` to determine `TColor`.
Adds a multitude of Image Extensions for accessing the above processors in a manor similar to `System.Drawing`
9 years ago
James Jackson-South
c68ac88f10
Fix #9
9 years ago
James Jackson-South
cea1b5baf2
Much better output. Nearly there. Touch #9
Image in issue works perfectly as does rgba test image. rgb 8x8 test
image shows 2 pixel error though and I don't know why.
9 years ago
James Jackson-South
d61fae265e
A little bit better
9 years ago
James Jackson-South
b94a865d1c
Initial attempt to decode png. Touch #9
I can pull the pixels from the stream but something is wrong with my
offset calculations. Fingers crossde it's something easy to spot.
9 years ago
Oleg Bogdanov
e9ccc93da4
Don't allocate memory for png decode filters, reuse scanline buffers
- Added png test images with different filters for local tests
9 years ago
James Jackson-South
0d395314a8
Reduce allocations when encoding
Down to 2.8X Sys.Draw with 1/4 memory per allocation. No tsure where to
go from here. Vectors maybe?
9 years ago
James Jackson-South
bcfc74a182
Optimize and cleanup the jpeg decoder
TODO: Test single vs multiple threaded decoding.
9 years ago
James Jackson-South
be028ed1b5
Build Huffman tables once only.
9 years ago
James Jackson-South
a57c90d94b
Rename to ImageSharp
9 years ago
dirk
c7606def89
Use jpeg instead of jpg.
Former-commit-id: c6c5334eaff8c57cd508e2388b9287fba8c635b3
Former-commit-id: be669dc053bd6ff9cf4d320bd8e6d5cc5eaa775d
Former-commit-id: 2cd963161aa5afe53e6f304c42d2fd4c57383ae7
9 years ago
dirk
d72ed0ac01
Refactored creating the output directory.
Former-commit-id: f23cc3264514e4c882d0a2ed41ffc23f9abb54ef
Former-commit-id: b9e32392f090e1fd3f0c534bad3939360d0dcecd
Former-commit-id: 6276382a7659cc1f3fed381c2cedcee611947da5
9 years ago
dirk
2102ff5186
Only read and decode the test images once in the unit tests.
Former-commit-id: 789111f1860e7b59bab56e10a8145d76eec0639a
Former-commit-id: 436fb17c2ae4d183b2fc50c1770d474b0dab570f
Former-commit-id: cfce7b2f47d0fd834893251577ede00cde96cd5e
9 years ago
James Jackson-South
b3c22c1f14
Cleanup [skip ci]
Former-commit-id: bff8258988879560d70275e17138ea80c4fcaa17
Former-commit-id: f88a9c5dc94265442f0f52c2595125e316e6efb0
Former-commit-id: 375b12dc3e97e8e6893f0f03869e8b525de4b07c
9 years ago
James Jackson-South
5cd6d2de08
Remove progress event handler.
It was useless once multiple processors were combined and also hurt
performance.
Former-commit-id: 639ea64d56094dbaed1cfb94cdc154d5439fc446
Former-commit-id: 9cf0ff1d972ff903bc14c8121c2feb15fcbcd690
Former-commit-id: 04da60830efe9a6d774e0f80431592c9c53f1841
10 years ago
James Jackson-South
0bae8d559f
Move adobe transforms to constants. [skip ci]
Former-commit-id: 9d3ce39703340dcc507fa395eae0888d2f239e47
Former-commit-id: 4cdf934c53f6addf88c7bb645804feea0b47c7e5
Former-commit-id: e29fcd94b179e8e377871eee0035d212145c5fe6
10 years ago
dirk
ec047a3c14
Add new TestImages class to get easier access to individual test images.
Former-commit-id: 9a2532c9dfb7d153dcc67d2fe3978771e90e07cc
Former-commit-id: 9dd731103d2774c5c5923d1b57e90c66d78349f5
Former-commit-id: 7c8dd93df1e327e3b816aa04721d35f16957215a
10 years ago
James Jackson-South
6574466aac
Sanitation, performance, vignette, and glow
TODO convolution and colormatrix sanitation
Former-commit-id: 2dc40b04a3d2c7bcf539488d4c0559fd42a48125
Former-commit-id: e79bce183a3fce5bd19c05271ac55dc756f74098
Former-commit-id: 43fa71e167864c565463fd3d2250a9603125661a
10 years ago
James Jackson-South
cb6e3145ed
Fix resampler accuracy
Former-commit-id: 35f3471c93647fb9cf7927cd758321154f06cdbb
Former-commit-id: d90a5442769e89c655a4ada4a6ca36d07fa4bac5
Former-commit-id: 813a7f137bc4badeae043123dd51d02c8812e217
10 years ago
James Jackson-South
b73339d316
Attempt to weight calc cleanup [skip ci]
Former-commit-id: 485d047c26116a779df451cc5b6e908aaf458245
Former-commit-id: 5d60473dbdc50f4ea1a3f9a7259285195b2508e7
Former-commit-id: 63bcdaa96ad9327b223a4052fb16e26b69372f64
10 years ago
James Jackson-South
e74eed2631
Add turtle for testing
http://css3.bradshawenterprises.com/filters/
Former-commit-id: 65f2931f38d1b159291a39178ac743d628477483
Former-commit-id: 1cb0efb5f0c944a6f0aed5b191ae692b35f36b0f
Former-commit-id: 71c2bbee979c71225b669ae0226c491f23996ede
10 years ago
James Jackson-South
24b5764b98
Add all samplers.
Former-commit-id: c60883d765b1372be2a9ab88f8494dfa3283d8a6
Former-commit-id: 9fbcdac0c826d57eaa2bafdc5c72ff90079e5f51
Former-commit-id: 2e8a4fba64de7233e5ea741122188eb86612a060
10 years ago
James Jackson-South
b8b588d221
Now decodes grayscale inside the core decoder
Former-commit-id: 69bc6a527f9d013eba29649a5d6b0893cc9a1317
Former-commit-id: 0185f5dc2e1f738ce87f757c7427fdc4c6cb8335
Former-commit-id: 138fa9716bb44d037b7e5dbd014bcfbe9a8401e7
10 years ago
James Jackson-South
4edf2e0a03
Convert gif format.
Former-commit-id: 085c4bc99388de35847b2b8dd26b20d518e272de
Former-commit-id: e8b3af949ca0f63f001483188dbab20cd263c10f
Former-commit-id: 8660e1a08e5da2bfebcc269d75ee20488542d4f6
10 years ago
James Jackson-South
8187f2ad82
Add png encoder
Former-commit-id: b222f96370adf0a3f87d3e2d762e270fac829a5a
Former-commit-id: eecf02f023c9d43ff3e54dd4fcfbfbfdde22f543
Former-commit-id: 03bf7ed3356ee33b96e8dcff9b7a53b26e8f919f
10 years ago
James Jackson-South
20f34563ef
Trim back to basics
Former-commit-id: 3cca13c49abcf0e9a5a394794153406084d2e19e
Former-commit-id: 767a3db69cf4adecac58c58a84891b736ada79eb
Former-commit-id: db1a5b695cc73951becdff9b31535b8f7b03e75b
10 years ago
Patrick Ammann
eddb738e96
#392 add support for negative height in bmp files
Former-commit-id: eb6e82c54beabe1aa3b0a112561f07b0d1d290f9
Former-commit-id: d3121807246bb1798eeadabe2dcca7a7b5fea382
Former-commit-id: ece8ac1d7f29bf096d16481af5e42f63e2de71e0
10 years ago
James Jackson-South
904c48be9e
Fix blend
Former-commit-id: 2ff994ec48236f6d1293dfbaefdbf2a2f91fee67
Former-commit-id: 734ec6a70dd782ac2d26420621e989d9943b12ed
Former-commit-id: 87b984ebbace9d0b8108267d0d09f736ba5e1b1a
10 years ago
James South
2aabf49b56
Image now IDisposable
This appears to have injected some voom into things. Not benchmarked
though and needs double checking for memory leaks.
touch #360
Former-commit-id: 0707a36781e3a5fa4d273d933d1bd1b04b022092
Former-commit-id: f7ec165c3d10d9e1e35b8eec3545ca75cf302cf9
Former-commit-id: d5bc57ce1cde9f1486a954d3453040514dc4d629
10 years ago
James South
b4abafebc4
Add 32bit bitmap support plus cleanup.
Former-commit-id: 398e93818c9c9e901b125b7daa7a345fcc8d2787
Former-commit-id: 9aba9f2e190fc8a986e16d632a58ebc94fda2d5b
Former-commit-id: fd99bf7129eb85360cae9484cccac3241af0681e
10 years ago
James Jackson-South
069cb1c7d5
Add progressive test images.
Former-commit-id: f17e37a77f0296a15ba5c377a644bc13974ecc7f
Former-commit-id: 93491005be759f3bdc09ca368124b0eb4410ef97
Former-commit-id: 7817604c070e829115c6e0b8b1611c9a2f795b91
10 years ago
James Jackson-South
d5a7165210
Add restriction to samplers.
Former-commit-id: a1f5890e16408916332a4aa3e6cb0454554a9964
Former-commit-id: 01019e4c20cb33666ac5407482ee77d77a9632a2
Former-commit-id: d6f42c3a126e0817a6840d3eccf9f62faf5696ba
10 years ago
James Jackson-South
b4401215d3
Add test image
Former-commit-id: 2476eadc6520f4a408c1408be176b03c6971e925
Former-commit-id: 041aa8236803ed8dd5602d9abed887baf2ab3806
Former-commit-id: 88a91cce1426f4e944e2b56c450ed9e24327bf5b
10 years ago
James Jackson-South
a9ad947885
Rename to Core
Former-commit-id: c18f0149c93be6a2b8f196bd9265d293071f303b
Former-commit-id: ec96e4fa102a05b541bee1dc6be583ad9676a664
Former-commit-id: af407d177b01792436a266deecb16925f1c22981
10 years ago
James Jackson-South
f7d04925d7
Rename to Core
Former-commit-id: d67ccae22dd0be392237738f05abc778f5f37bca
Former-commit-id: b2cd4c7535080da11a3710d8e4a6dc4cba934512
Former-commit-id: 491167f89f2e9487a1956a33cf75616d3b4789c6
10 years ago
James Jackson-South
f2665d1b8d
Fix weight count
Helps mitigate halo bug with gifs.
Former-commit-id: 3a23d972fbb8fa09977e2303065ca61d96f6f1d6
Former-commit-id: 4ec8909f0aef656426ef5d0a3d88f41a51b5a308
Former-commit-id: fe652e796cb6d052deb7c682cde01522c43c0631
10 years ago
James Jackson-South
2ea3c2bc3f
Fix weight count
Helps mitigate halo bug with gifs.
Former-commit-id: 9307909acd7eb38e5a6c722c2f1ce2c949ca4a9c
Former-commit-id: 7e53310efb4390de53880066e1798c5e77cdd649
Former-commit-id: 4bd4a70b5a3c64f39dd95203d8ad8bf31a394b11
10 years ago
James Jackson-South
b027133503
Add Color.Transparent
Former-commit-id: d18d0ef6b152c19270e54157e1026490040a6cab
Former-commit-id: 1d1d7bda80c783f9cb1e8c8b1ebfeca2de750d53
Former-commit-id: 421d0caa589e3609c75e01d21b48e15c54fe7aae
10 years ago
James Jackson-South
54572ed872
Add Color.Transparent
Former-commit-id: 31fbe36a607bbc21956354fac41f527fa2aa7d26
Former-commit-id: f4d97e3a888019144089249ff2a4729c9751273c
Former-commit-id: b11090548ebfeb1eb4377a8dfa139f154a9f82a7
10 years ago
James Jackson-South
2500f78ca5
Another attempt at fixing Lerp.
Former-commit-id: 78db70bb872f472dacc4a796327f850a960cccd8
Former-commit-id: b2dafc5639de3428cae03cdb0af0b4787046e70e
Former-commit-id: e0e2e48957c3ed209524478b4678fc6125b54496
10 years ago
James Jackson-South
260ce02a4d
Another attempt at fixing Lerp.
Former-commit-id: 48f5e84d6b95756a125ec0ff3adce66530f8a277
Former-commit-id: cc600e84bb3e3a5ae3038811bc466f9b161e6ee8
Former-commit-id: ef0a7b1b98de88cb1ab51634aac379d0132039a2
10 years ago
Rubens Fernandes
08abb2584e
Adding simple decode for jpeg grayscale colorspaces. Also added test image
Former-commit-id: c61158051fdd8deddde279ed03c79dcbd996a355
Former-commit-id: c85e9c5d0b383b60ed1fcfb4c2657d8f19890b6a
Former-commit-id: 5d34af5d81eb5fae48a1fe5db466b7ef6abc74c9
10 years ago
Rubens Fernandes
35be517c4c
Adding simple decode for jpeg grayscale colorspaces. Also added test image
Former-commit-id: 6ef0bffcb0a08b3876373392f3d67572273cea1b
Former-commit-id: db74e4cf38bbb992fc3b88de30f6b7e79cf9ac19
Former-commit-id: c51e5e8718dd52306a6656c4f9d85be76e9ecdb8
10 years ago
James Jackson-South
b044c201fb
Trim tests for Appveyor
Former-commit-id: a0e3dd28de7bb5aa41df9f46fd95f71b9bf53e1d
Former-commit-id: ace51d416259b036a227cd83f0fa86ce48200623
Former-commit-id: c2158f3ab1fa72e5f9184d83ccb50ac1d4ac1429
10 years ago