목록strokeText() (1)
지 구 여 행

이미지 추가 / 텍스트 추가 / 파일 저장하기 이미지 추가하기 HTML Javascript const imageInput = document.querySelector("#image-file"); function onImageChange(event) { const file = event.target.files[0]; const fileURL = URL.createObjectURL(file); const image = new Image(); image.src = fileURL; image.onload = function () { ctx.drawImage(image, 0, 0, CANVAS_WIDTH, CANVAS_HEIGHT); }; } imageInput.addEventListener("change", o..
필기노트/노마드코더
2022. 10. 3. 14:15