about summary refs log tree commit diff stats
path: root/src/img
Commit message (Collapse)AuthorAgeFilesLines
* png: print zstream errorsbptato2023-07-041-1/+5
|
* painter: fix off by one error in getCharBmpbptato2023-07-041-2/+2
|
* png: fix grayscale regressionbptato2023-06-291-1/+1
| | | | it's 0x1, not 0x11. oops
* Move CanvasFillRule from bitmap to painterbptato2023-06-262-4/+4
|
* png: fix 4 bit grayscale & <8 bit indexed colorbptato2023-06-251-6/+17
|
* Get rid of the .jserr pragmabptato2023-06-191-12/+17
|
* Make Result.text, json return promisebptato2023-06-131-1/+0
|
* Fix various layout bugs, prepare for image supportbptato2023-06-121-3/+3
|
* Add indexed color, other png improvementsbptato2023-06-091-22/+71
|
* Refactor bitmap, add png color modesbptato2023-06-063-591/+623
| | | | | Now PNG encoding/decoding, painting, etc. are done in separate files. Plus we support all color modes except indexed color.
* Fix stupid overflowbptato2023-06-051-3/+3
|
* Fix 16bit grayscale bugbptato2023-06-051-1/+1
|
* Add support for canvas and multipartbptato2023-06-052-0/+1050
Quite incomplete canvas implementation. Crucially, the layout engine can't do much with whatever is drawn because it doesn't support images yet. I've re-introduced multipart as well, with the FormData API. For the append function I've also introduced a hack to the JS binding generator that allows requesting the JSContext pointer in nim procs. Really I should just fix the union generator thing and add support for overloading. In conclusion, for now the only thing canvas can be used for is exporting it as PNG and uploading it somewhere. Also, we now have PNG encoding and decoding too. (Now if only we had sixels as well...)