Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
ImageCapture 인터페이스의 getPhotoCapabilities() 메서드는 사용 가능한 설정 옵션을 담은 PhotoCapabilities 객체로 이행하는 Promise를 반환합니다.
다음 속성을 포함하는 객체로 이행하는 Promise.
redEyeReduction장치의 적목 현상 감소 기능 적용 여부를 나타내는 "never", "always", "controllable" 중 하나를 반환합니다.
imageHeight사용자 에이전트가 지원하는 이미지 높이의 범위를 나타내는 객체를 반환합니다.
imageWidth사용자 에이전트가 지원하는 이미지 너비의 범위를 나타내는 객체를 반환합니다.
fillLightMode사용 가능한 카메라 플래시 옵션을 담은 배열을 반환합니다. 가능한 값은 auto, off, flash입니다.
다음 예제는 Chrome의 Image Capture / Photo Resolution Sample에서 가져온 코드로, getPhotoCapabilities()를 사용해 범위 입력 칸의 크기를 수정합니다. 또한 장치의 MediaStream에서 가져온 MediaStreamTrack 객체를 사용해 ImageCapture 객체를 생성하는 부분도 포함하고 있습니다.
| MediaStream Image Capture # dom-imagecapture-getphotocapabilities |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023년 7월 30일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.