Nathan Rajlich
0e4fa461de
src: add newline at end of file to fix compiler warning
13 years ago
Nathan Rajlich
cdb2421812
build: begin making gyp file work on unix
13 years ago
TJ Holowaychuk
f5be948340
fix jpeg malloc Image issue. Closes #160 [c-spencer]
13 years ago
Andreas Botsikas
3738179d76
Added instructions, binding.gyp and added the NODE_MODULE macro to specify the entry point.
13 years ago
TJ Holowaychuk
f47422fd06
fixed Image bit flags
13 years ago
TJ Holowaychuk
69d4eb3987
slight refactor
13 years ago
c-spencer
03584c3307
Improve Image mode API
13 years ago
c-spencer
4c5962b90e
Add clearData method to handle reassignment of src, and clean up mime data memory handling.
13 years ago
c-spencer
cc994d2d8d
Improve how _data_len is managed and use to adjust memory, hide more of mime API behind cairo version conditional.
13 years ago
c-spencer
8b8ee7f017
Add optional mime-data tracking to Image.
13 years ago
c-spencer
d5838bc4aa
Refactor JPEG decoding into decodeJPEGIntoSurface
13 years ago
c-spencer
307fa29396
Switch draw mode state to an enum.
13 years ago
c-spencer
d5d9c59e56
Improve bottom and middle baseline calculation.
13 years ago
c-spencer
e06ed99dec
Partial TextMetrics support.
13 years ago
c-spencer
18e3edfc28
Add textDrawingMode context property.
13 years ago
TJ Holowaychuk
56d49559de
clean up free()s
13 years ago
TJ Holowaychuk
ba94a33d74
live_data -> _data
13 years ago
David Björklund
c9f991b8de
Fixes the Image memory leak ( #150 ). It is basically the fix from @AllYearbooks fork without the mime-stuff.
13 years ago
TJ Holowaychuk
eb04ff63d6
Fixed Context2d::hasShadow()
13 years ago
TJ Holowaychuk
3ebc55a5e6
Fixed: free closure and surface in ~Canvas
13 years ago
TJ Holowaychuk
eb0edf2ce4
Changed: renamed .nextPage() to .addPage()
13 years ago
TJ Holowaychuk
03d1cacf9c
Added `Canvas#type` getter
13 years ago
TJ Holowaychuk
a063907832
Added quick PDF support
need to clean things up, add async support, test images etc. I believe
some guys forked node-canvas to add some kind of image caching
for when an image appears several times within a PDF document, though
that may be out of scope
13 years ago
TJ Holowaychuk
7a28ab4773
Fixed quadratic curve lameness. Closes #155
13 years ago
Philippe Plantier
550011e25e
Use libuv instead of EIO so that it builds on node.js >= 0.7.0
13 years ago
Tj Holowaychuk
f8ffa3fdb5
replaced seek with fstat()
13 years ago
Tj Holowaychuk
323e24ba42
clean up styling
13 years ago
obarthel
4cfb7a61b2
Added error cleanup code to the JPEG loader functions
13 years ago
Tj Holowaychuk
7712bd4b5d
fixed css color table styling
13 years ago
obarthel
5f1614893d
Named color table rebuilt from CSS Color Module Level 3 specification
13 years ago
Tj Holowaychuk
959009b884
buf_size -> len
13 years ago
obarthel
5a8083de17
Added buffer size checks to the rgba_to_string() function
13 years ago
Robert Sköld
46bda423f8
Added a test (and fix) for a regression with gradients
13 years ago
Robert Sköld
559bd9d572
Started on ctx.createPattern() support.
13 years ago
Tj Holowaychuk
a4ed9c5edd
tweak styling
13 years ago
Tj Holowaychuk
a50ffa1f27
wrap with HAVE_JPEG
13 years ago
Tj Holowaychuk
3c2cf684e4
slight refactor
13 years ago
Elijah Hamovitz
be9b2ee411
removed errant TODOs, reconsidered error handling
13 years ago
Elijah Hamovitz
b644873eab
added support for writing JPEGs
13 years ago
Tj Holowaychuk
762f8865de
misc cleanup
13 years ago
Tj Holowaychuk
c3e9284cfa
ocd
13 years ago
Tharit
3ea435801e
fixed two memory leaks in context2d
13 years ago
Tj Holowaychuk
f65f60aec1
Fixed measureText().width. Closes #126
13 years ago
Nathan Rajlich
de520fcece
Try to detect when EIO_custom changed it's signature.
Should also be a part of #115 and #120 .
13 years ago
Tj Holowaychuk
f72f8072ab
Added data uri support. Closes #49
easy as pie now that we have .src=Buffer support
13 years ago
Walt Lin
bb1fbcf426
Make node-canvas compile with libjpeg62-dev or libjpeg8-dev.
- detect if libjpeg is < 8 and if so, define our own jpeg_mem_src.
13 years ago
Tj Holowaychuk
549665dee8
typo
13 years ago
Tj Holowaychuk
82919c9992
Added better lineTo() / moveTo() exception messages
14 years ago
Tj Holowaychuk
15c558bdeb
Revert "Fix compilation on MacOSX gcc 4.2.1 environment."
This reverts commit 5c5db2972f
.
14 years ago
Tj Holowaychuk
10da42f2c0
Changed: prefix some private methods with _
14 years ago