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.
- Host: GitHub
- URL: https://github.com/g21589/wmf2canvas
- Owner: g21589
- Created: 2016-03-24T09:18:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-07-05T07:04:29.000Z (almost 5 years ago)
- Last Synced: 2025-04-03T01:51:11.897Z (about 1 year ago)
- Topics: emf, html5-canvas, javascript, windows-metafile, wmf
- Language: JavaScript
- Homepage: http://g21589.github.io/wmf2canvas/
- Size: 1.44 MB
- Stars: 36
- Watchers: 1
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
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