An open API service indexing awesome lists of open source software.

https://github.com/g21589/wmf2canvas

Convert WMF/EMF (Windows Metafile) image file to HTML5 canvas by using pure javascript.
https://github.com/g21589/wmf2canvas

emf html5-canvas javascript windows-metafile wmf

Last synced: 11 months ago
JSON representation

Convert WMF/EMF (Windows Metafile) image file to HTML5 canvas by using pure javascript.

Awesome Lists containing this project

README

          

wmf2canvas
==========
[![MIT License][license-image]][license-url]

Convert WMF (Windows Metafile) image file to HTML5 canvas by using pure javascript.

Online Demo
----
http://g21589.github.io/wmf2canvas

Usage
----
```html

let wmf = new WMFConverter(); // new the WMFConverter object

let canvas = document.getElementById("canvas");
let file = document.getElementById("file");

file.onchange = function() {
let filename = this.files[0];
wmf.toCanvas(filename, canvas); // load the wmf file and convert to canvas graph
}

```

Version
----

0.9.1

License
----

MIT

[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat
[license-url]: LICENSE