Andy Wood
dfc661f28f
Just use cairo_image_surface_create rather than cairo_surface_create_similar_image which was introduced in cairo 1.12.
Unfortunately the cairo distributed with GTK+, used in the Windows build, is only 1.10.
Using the similar_image version offers backends the chance to be more efficient, but the alternative used here is used as a fallback in the cairo code anyway.
10 years ago
zahranisa
66fa59c4a8
io.js compatibility
10 years ago
Andy Wood
8c6984a099
Fix issue with line width not being correct in stroked shadows.
10 years ago
Andy Wood
822d822066
Refactor setSourceRGBA to allow the context to be supplied.
10 years ago
Andy Wood
39766d1fd6
Simple image shadow (no blurring or handling current transforms) based on image's alpha channel.
10 years ago
Andy Wood
2b366c684e
The +1 on the offset seems to match the browser's output better, but I can't work out why it would be needed (unless it's pixel alignment related).
10 years ago
Andy Wood
617aabc6ae
Make the shadow radius more accurately match the browser's, making use of sigma scale as used in SKIA: https://github.com/google/skia/blob/master/src/effects/SkBlurMask.cpp#L26 .
10 years ago
Andy Wood
0dcc70b2b3
Create a new image surface to render blurred shadows to, this means that vector formats like PDF will now render blurs.
10 years ago
Andy Wood
5d9582b81e
Add recommended calls to flush and dirty buffer, as per http://www.cairographics.org/manual/cairo-Image-Surfaces.html#cairo-image-surface-get-data .
10 years ago
Andy Wood
95e342d259
Fix to ensure shadowOffset is unaffected by the current transform.
10 years ago
motiz88
113abfbd90
Code style + attribution.
Also removed parseClipped() and commented out wrapInt (now wrap_int).
10 years ago
motiz88
3951221166
Fixed <number> handling in hsl/hsla color parser.
parseNumber() was erroring out on numbers with long fractional parts.
10 years ago
motiz88
3cc596f34c
hsl/hsla color parsing + rebeccapurple
hsl() and hsla() color values are now supported, with corresponding unit tests.
Also added rebeccapurple (from CSS Color Level 4) to the named color list.
10 years ago
Jake Gordon
36bd6498b5
float rather than int for drawImage arguments
10 years ago
Jake Gordon
7522aca2ea
with_pango to true and use fontconfig to load fonts
10 years ago
Matthieu Dehaussy
372fb699f0
Update Image.cc
fix fopen mode for non-POSIX platform
10 years ago
Thaddee Tyl
79f1d42fb5
Offer SVG output.
11 years ago
svandecappelle
5212a52da7
Glib version test into giflib exists test
Include test of glib version into the have gif lib test
11 years ago
svandecappelle
c383d11412
Giflib 5.1
11 years ago
svandecappelle
86e77b5bcc
Update Image.h
11 years ago
svandecappelle
9fa62ba875
Update Image.cc
11 years ago
svandecappelle
0eefc23ee5
Giflib 5.1
update to compile with giflib >= 5.1
11 years ago
Milan Gardian
13049aced3
Remove unneeded #include <nan.h>
- Already included by "Canvas.h"
11 years ago
Milan Gardian
ba4038b496
Use float constants to prevent double->float conversion warning
11 years ago
King Koopa
9ffde8ebb3
Add algorithm include to CanvasRenderingContext2d.cc for std::min
11 years ago
King Koopa
c18d777f57
Updated NAN to 1.2.0
11 years ago
Vincent Weevers
f42a018a8d
Add shims so Windows Visual C++ can use C99's isnan() and isinf().
11 years ago
David Caldwell
87abe5a85e
Use std::vector instead of C99 variable length arrays because of Visual C++.
Addresses Issue #420
11 years ago
David Caldwell
31dd7d6d21
Add support for the lineDash API.
Described here:
http://www.w3.org/TR/2dcontext/#dom-context-2d-setlinedash
The test images match on Chrome, but not on Firefox. It looks like
Firefox resets the lineDash to [] when given invalid parameters. My
reading of the spec agrees with Chrome.
11 years ago
Rod Vagg
8158158abf
NanNew() the NanNull()s
11 years ago
Rod Vagg
4ab32bccb1
NanNew<Value>() -> NanNew()
11 years ago
Rod Vagg
9b62e5f64e
beginning nan@1.0.0 conversion
11 years ago
nulltask
844294efd1
change operator lighter to lighten
11 years ago
King Koopa
b0d70c5baa
Restore Uintiness
11 years ago
King Koopa
8dbdd009b5
Runs on new v8.
11 years ago
Mitar
76bbe247fa
Correctly limit bounds in PutImageData to prevent segment fault.
11 years ago
Seth Fitzsimmons
fb9e576bfb
Distinguish between 'add' and 'lighter'
When CAIRO_OPERATOR_ADD and CAIRO_OPERATOR_LIGHTEN are both available,
make CAIRO_OPERATOR_ADD available as 'add'.
11 years ago
William Riancho
1256ce44d7
fix segfault when onload and onerror are not function
11 years ago
tiagoalves
d920c12b08
Readjusting the amount of allocated memory. Fixes #367
11 years ago
King Koopa
7831d74f57
Update for 0.11.9
11 years ago
Robert Coup
c1180d1f3d
Add CAIRO_FORMAT_INVALID
Fixes https://github.com/LearnBoost/node-canvas/issues/342
11 years ago
Stefan Lau
bc6df356f5
fix argument index for filter parameter
11 years ago
Rod Vagg
738f12d17b
NAN dep upgrade, full node@<=0.11.8 compatibility
11 years ago
Sascha Gehlich
d30145b70b
Use node::MakeCallback() instead of v8::Function::Call()
11 years ago
King Koopa
0bc1aaf38b
Added scopes.
12 years ago
King Koopa
1219a151bc
Testing...
12 years ago
King Koopa
c6c9eeac9a
Updated NAN to 0.3.0.
12 years ago
Jason Rose
9ce2d8ebec
Freeing custom buffer created during canvas jpeg streaming.
12 years ago
Jason Rose
50b904edd7
Deallocating both onload and onerror handlers.
12 years ago
King Koopa
d96183f0d7
Made CAIRO_FORMAT_RGB30 optional to support old versions of Cairo.
12 years ago