js_bitmap icon indicating copy to clipboard operation
js_bitmap copied to clipboard

create bmp instead of png

Open osbulbul opened this issue 10 years ago • 2 comments

Hello,

i need to create monochrome bmp instead of png. Is there a way of modify your code? I examine your code but i can't figure out how to modify. Can you help about it?

osbulbul avatar May 02 '16 15:05 osbulbul

You'd need to rewrite the dataURL function for the new format.

But there's an easier way: modern browsers have a toDataURL function to do this. Example. Note that BMP isn't guaranteed to be supported though.

zholos avatar May 02 '16 22:05 zholos

Thank you very much for that informations :)

osbulbul avatar May 03 '16 11:05 osbulbul