https://github.com/sungchuni/canvas-aliasing
๐ฟ CanvasRenderingContext2D์ imageSmoothingQuality ๊ฐ์ ๋ฐ๋ฅธ ๋ฆฌ์ค์ผ์ผ๋ง๋ ์ด๋ฏธ์ง์ ์ผ๋ผ์ด์ด์ฑ ๋น๊ต ๋ถ์
https://github.com/sungchuni/canvas-aliasing
aliasing canvas
Last synced: about 1 month ago
JSON representation
๐ฟ CanvasRenderingContext2D์ imageSmoothingQuality ๊ฐ์ ๋ฐ๋ฅธ ๋ฆฌ์ค์ผ์ผ๋ง๋ ์ด๋ฏธ์ง์ ์ผ๋ผ์ด์ด์ฑ ๋น๊ต ๋ถ์
- Host: GitHub
- URL: https://github.com/sungchuni/canvas-aliasing
- Owner: sungchuni
- Created: 2021-01-04T16:16:41.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-01-19T09:53:00.000Z (over 5 years ago)
- Last Synced: 2025-01-06T19:20:50.539Z (over 1 year ago)
- Topics: aliasing, canvas
- Language: JavaScript
- Homepage: https://sungchuni.github.io/canvas-aliasing
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ์บ๋ฒ์ค ์ผ๋ผ์ด์ด์ฑ
์ง์ ํ์ผ์ ์
๋ก๋ํ์ฌ Canvas API์ ์ด๋ฏธ์ง ๋ฆฌ์ค์ผ์ผ๋ง ์ ์ผ๋ผ์ด์ด์ฑ ํ์์ ๋น๊ตํฉ๋๋ค. ํ๋ฉด์ ๋ ๋๋ง๋๋ ์ด๋ฏธ์ง๋ ๋๋นwidth๋ฅผ ์ง์ ํ ์ ์์ผ๋ฉฐ, ์๋์ ๊ฐ์ ๋ชฉ๋ก์ ๊ฒฐ๊ณผ๋ฌผ์ด ์ถ๋ ฅ๋ฉ๋๋ค.
- default: ๋์กฐ๊ตฐ
- low: `CanvasRenderingContext2D#imageSmoothingQuality = "low"`
- medium: `CanvasRenderingContext2D#imageSmoothingQuality = "medium"`
- high: `CanvasRenderingContext2D#imageSmoothingQuality = "high"`
- super sample: [์ํผ์ํ๋ง](https://en.wikipedia.org/wiki/Supersampling) ์ ์ฉ
์ ๋นํ ์ด๋ฏธ์ง๊ฐ ์์ ๊ฒฝ์ฐ์๋ ์ด [์ด๋ฏธ์ง](https://img1.goodfon.com/original/2560x1600/e/a2/abstrakciya-linii-poloski.jpg)๋ฅผ ์ฌ์ฉํ์
์. ์ด ์คํ์ค๋ฒํ๋ก์ [๋ต๊ธ](https://stackoverflow.com/questions/17861447/html5-canvas-drawimage-how-to-apply-antialiasing)์ ์ฐธ์กฐํ์์ต๋๋ค.