mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 04:05:35 +00:00
fix: remove duplicate function, closing #39
This commit is contained in:
+1
-15
@@ -372,7 +372,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ConversionFunctions = {
|
var ConversionFunctions = {
|
||||||
// Output the image as a string for horizontally drawing displays
|
// Output the image as a string for horizontally drawing displays
|
||||||
horizontal1bit: function (data, canvasWidth, canvasHeight){
|
horizontal1bit: function (data, canvasWidth, canvasHeight){
|
||||||
@@ -685,20 +685,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function updateDrawMode(elm) {
|
|
||||||
var note = document.getElementById("note1bit");
|
|
||||||
if(elm.value == "horizontal1bit" || elm.value == "vertical1bit") {
|
|
||||||
note.style.display = "block";
|
|
||||||
} else {
|
|
||||||
note.style.display = "none";
|
|
||||||
}
|
|
||||||
|
|
||||||
var conversionFunction = ConversionFunctions[elm.value];
|
|
||||||
if(conversionFunction) {
|
|
||||||
settings.conversionFunction = conversionFunction;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make the canvas black and white
|
// Make the canvas black and white
|
||||||
function blackAndWhite(canvas, ctx){
|
function blackAndWhite(canvas, ctx){
|
||||||
var imageData = ctx.getImageData(0,0,canvas.width, canvas.height);
|
var imageData = ctx.getImageData(0,0,canvas.width, canvas.height);
|
||||||
|
|||||||
Reference in New Issue
Block a user