Files
fonteditor/demo/fitImage.html
2019-10-24 23:04:23 +08:00

38 lines
844 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>canvas拟合图像</title>
<script src="../dep/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="./css/editor.css">
<style>
body {
margin: 0;
padding: 0;
}
#canvas {
position: absolute;
max-width: 50%;
}
#render-view {
margin-left: 50%;
width: auto;
height: 90%;
}
</style>
</head>
<body>
<div>
<input id="upload-file" type="file">
灰度阈值:<input id="threshold-gray" type="range" min="0" max="255" value="200">
</div>
<canvas id="canvas"></canvas>
<div id="render-view" class="render-view glyf-editor" oncontextMenu="return false"></div>
</body>
</html>