Baseline Widely available *
ã¡ã¢: ãã®æ©è½ã¯ã¦ã§ãã¯ã¼ã«ã¼å ã§ã®ã¿å©ç¨å¯è½ã§ãã
createImageBitmap()
㯠WorkerGlobalScope
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®ã¡ã½ããã§ãæå®ãããã½ã¼ã¹ããããããããã使ãããªãã·ã§ã³ã§ãã®ã½ã¼ã¹ã®ä¸é¨ã®ã¿ãåãæãã¾ãã ãã®ã¡ã½ããã¯ããã¾ãã¾ãªç»åã½ã¼ã¹ãåãä»ãã ImageBitmap
ã«è§£æ±ºãã Promise
ãè¿ãã¾ãã
createImageBitmap(image)
createImageBitmap(image, options)
createImageBitmap(image, sx, sy, sw, sh)
createImageBitmap(image, sx, sy, sw, sh, options)
弿°
image
ç»åã½ã¼ã¹ã§ã以ä¸ã®ãã¡ã®ä½ããã§ãã
sx
ImageBitmap
ãæ½åºãããé·æ¹å½¢ã®åç
§ç¹ã® x 座æ¨ã
sy
ImageBitmap
ãæ½åºãããé·æ¹å½¢ã®åç
§ç¹ã® y 座æ¨ã
sw
ImageBitmap
ãæ½åºãããé·æ¹å½¢ã®å¹
ã ãã®å¤ã¯è² ã®å¤ã«ãããã¨ãã§ãã¾ãã
sh
ImageBitmap
ãæ½åºãããé·æ¹å½¢ã®é«ãããã®å¤ã¯è² ã®å¤ã«ãããã¨ãã§ãã¾ãã
options
çç¥å¯
ç»åã®æ½åºã®ããã®ãªãã·ã§ã³ãè¨å®ãããªãã¸ã§ã¯ããå©ç¨å¯è½ãªãªãã·ã§ã³ã¯ä»¥ä¸ã®éãã§ãã
imageOrientation
Specifies how the bitmap image should be oriented.
from-image
EXIF æ¹åã¡ã¿ãã¼ã¿ãåå¨ããå ´åããã®æ¹åã«å¾ã£ã¦ç»åã表示ãã¾ãï¼æ¢å®å¤ï¼ã
flipY
EXIF æ¹åã¡ã¿ãã¼ã¿ãåå¨ããå ´åããã®ã¡ã¿ãã¼ã¿ã«å¾ã£ã¦ç»åã®æ¹åã調æ´ããåç´æ¹åã«å転ãã¾ãã
none
ç»åã®ã¨ã³ã³ã¼ãæ¹å¼ã«å¾ã£ã¦ç»åã®æ¹åã調æ´ããæ¹åã«é¢ããã¡ã¿ãã¼ã¿ï¼EXIF ã¡ã¿ãã¼ã¿ãªã©ãç»åã縦åãã§æ®å½±ããããã«ã«ã¡ã©ã横åãã«ãããã¨ã示ãããã«ç»åã«è¿½å ãããå ´åã®ããã¡ã¿ãã¼ã¿ï¼ã¯ç¡è¦ãã¾ãã
premultiplyAlpha
Specifies whether the bitmap's color channels should be premultiplied by the alpha channel. One of none
, premultiply
, or default
(default).
colorSpaceConversion
Specifies whether the image should be decoded using color space conversion. Either none
or default
(default). The value default
indicates that implementation-specific behavior is used.
resizeWidth
A long integer that indicates the output width.
resizeHeight
A long integer that indicates the output height.
resizeQuality
Specifies the algorithm to be used for resizing the input to match the output dimensions. One of pixelated
, low
(default), medium
, or high
.
æå®ãããé·æ¹å½¢ã®ãããããããã¼ã¿ãä¿æãã ImageBitmap
ãªãã¸ã§ã¯ãã«è§£æ±ºãã Promise
ãè¿ãã¾ãã
ä¾ã«ã¤ãã¦ã¯ Window.createImageBitmap()
ãåç
§ãã¦ãã ããã
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4