HTTP/2 200
content-type: text/html
x-guploader-uploadid: AAwnv3JZzhSJ52k3cIjK4xQpDR2luqO8ANmh_WgQ-7PczEySwdjCksalJqIA9QxS8IqAdX2M
cache-control: public, max-age=3600
expires: Wed, 08 Oct 2025 11:58:14 GMT
last-modified: Wed, 08 Oct 2025 01:13:21 GMT
etag: W/"7184a72fd6bb69cfedbce556fe236aab"
x-goog-generation: 1759886001858107
x-goog-metageneration: 1
x-goog-stored-content-encoding: identity
x-goog-stored-content-length: 162937
x-goog-meta-goog-reserved-file-mtime: 1759884117
x-goog-hash: crc32c=tj3jkQ==, md5=cYSnL9a7ac/tvOVW/iNqqw==
x-goog-storage-class: STANDARD
accept-ranges: none
alt-svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
alt-svc: clear
referrer-policy: strict-origin-when-cross-origin
x-content-type-options: nosniff
strict-transport-security: max-age=63072000
content-security-policy: default-src 'self'; script-src 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; script-src-elem 'report-sample' 'self' 'wasm-unsafe-eval' https://www.google-analytics.com/analytics.js https://www.googletagmanager.com/gtag/js assets.codepen.io production-assets.codepen.io https://js.stripe.com 'sha256-XNBp89FG76amD8BqrJzyflxOF9PaWPqPqvJfKZPCv7M=' 'sha256-YCNoU9DNiinACbd8n6UPyB/8vj0kXvhkOni9/06SuYw=' 'sha256-PZjP7OR6mBEtnvXIZfCZ5PuOlxoDF1LDZL8aj8c42rw='; style-src 'report-sample' 'self' 'unsafe-inline'; object-src 'none'; base-uri 'self'; connect-src 'self' developer.allizom.org bcd.developer.allizom.org bcd.developer.mozilla.org updates.developer.allizom.org updates.developer.mozilla.org https://*.google-analytics.com https://*.analytics.google.com https://*.googletagmanager.com https://incoming.telemetry.mozilla.org https://observatory-api.mdn.allizom.net https://observatory-api.mdn.mozilla.net https://api.github.com/search/issues stats.g.doubleclick.net https://api.stripe.com; font-src 'self'; frame-src 'self' interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net mdn.github.io live-samples.mdn.mozilla.net live-samples.mdn.allizom.net *.mdnplay.dev *.mdnyalp.dev *.play.test.mdn.allizom.net https://v2.scrimba.com https://scrimba.com jsfiddle.net www.youtube-nocookie.com codepen.io survey.alchemer.com https://js.stripe.com; img-src 'self' data: *.githubusercontent.com *.googleusercontent.com *.gravatar.com mozillausercontent.com firefoxusercontent.com profile.stage.mozaws.net profile.accounts.firefox.com developer.mozilla.org mdn.dev interactive-examples.mdn.mozilla.net interactive-examples.mdn.allizom.net wikipedia.org upload.wikimedia.org https://mdn.github.io/shared-assets/ https://mdn.dev/ https://*.google-analytics.com https://*.googletagmanager.com www.gstatic.com; manifest-src 'self'; media-src 'self' archive.org videos.cdn.mozilla.net https://mdn.github.io/shared-assets/; child-src 'self'; worker-src 'self';
x-frame-options: DENY
origin-trial: AxVILwizhbMjxFeHOn1P3R8niO1RJY/smaK4B4d1rLzc1gTaxtXMSaTi+FoigYgCw40uFRDwFcEAeqDR+vVLOW4AAABfeyJvcmlnaW4iOiJodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZyIsImZlYXR1cmUiOiJQcml2YXRlQXR0cmlidXRpb25WMiIsImV4cGlyeSI6MTc0MjA3OTYwMH0=
x-cloud-trace-context: 55e2ace9f37f403dbac4516fd7dc4e09
date: Wed, 08 Oct 2025 10:58:14 GMT
server: Google Frontend
via: 1.1 google
vary: Accept-Encoding
content-encoding: gzip
x-cache: miss
WorkerGlobalScope: createImageBitmap() メソッド - Web API | MDN
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
を返します。