Bitmap and vector graphics
導入済み
21:52
数系とデータ
この写真。この曲。この動画そのもの。あなたの名前、メッセージ、すべてのデバイスのすべてのファイル——コンピュータ内部では、すべてがゼロと一でしかありません。…
英語のナレーション・英語と中国語の字幕を切り替え可能
このレッスンの内容
| English | 意味 |
|---|---|
| bitmap/ˈbɪtmæp/ | ビットマップ |
| vector/ˈvektə/ | ベクトル |
| pixel/ˈpɪksl/ | ピクセル |
| file header/faɪl ˈhedə/ | ファイルヘッダ |
| metadata/ˌmetəˈdeɪtə/ | Information about a file that helps software read and use it. |
| Colour depth/ˈkʌlə depθ/ | The number of bits used to store the colour of one pixel. |
| Image resolution/ˈɪmɪdʒ ˌrezəˈluːʃn/ | The image's own size in pixels, width by height. |
| Screen resolution/skriːn ˌrezəˈluːʃn/ | The number of pixels a screen can display, given as width by height. |
| bits/bɪts/ | A binary digit, taking the value zero or one. |
| true colour | Colour stored using 24 bits per pixel, allowing about 16.7 million colours. |
| bytes | Units of eight bits used to store data in a computer. |
| decimal prefixes | Prefixes used to name data sizes based on powers of 1000. |
| frame/freɪm/ | フレーム |
| frame rate/freɪm reɪt/ | フレームレート |
| banding | Visible steps between shades where colours should change smoothly. |
| gradient/ˈɡreɪdɪənt/ | A gradual change from one colour or shade to another. |
| drawing list/ˈdrɔːɪŋ lɪst/ | 描画リスト |
| drawing objects/ˈdrɔːɪŋ ˈɒbdʒekts/ | 描画オブジェクト |
| primitives/ˈprɪmɪtɪvz/ | プリミティブ |
| properties/ˈprɒpətiz/ | プロパティ |
| coordinates/kəʊˈɔːdɪnəts/ | Ordered values specifying the position of a point relative to a chosen system. |
| render/ˈrendə/ | レンダリング |
ビルボードのロゴが写真ではない理由
- 会社のロゴが幅2センチメートルの名刺と幅6メートルの高速道路用ビルボードに表示される。同じファイルであり、どちらも鮮明である。
- 写真と同様に拡大するとブロック状になる。写真に問題があるわけではない。両方のファイルは異なる質問に対する答えである。
- 写真は各ポイントの色を記録する。ロゴは描くべき形状を記録する。前者を拡大すると固定数のドットが広がり、後者を拡大すると新しいサイズで形状が再描画される。
- このレッスンはビットマップおよびベクター画像、試験で求めるファイルサイズの計算、および選択を正当化する方法である。

ビットマップのエンコード方法
- ビットマップ(ビットマップ画像)は、グリッド内のピクセル一つ一つの色の情報を、行ごとに記録する。
- ファイルの先頭にファイルヘッダーがあり、ソフトウェアが続くピクセルを読み込むために必要なメタデータを記録する:幅、高さ、色深度である。
- 画像解像度は画像自体のピクセルサイズ(幅×高さ)である。スクリーン解像度はディスプレイが表示できる最大サイズである。画像がスクリーンより大きい場合は縮小して収まり、低解像度の画像を高解像度スクリーンに引き伸ばすとブロック状に見える。
- Colour depth (bit depth) is the number of bits storing one pixel's colour: 1 bit gives black and white, 8 bits give 256 colours, 24 bits give 16.7 million, called true colour.

ピクセル数が少なく、ブロックが大きい

コンピューティング概念ラボ
Classify concrete examples by the computing idea they demonstrate.
The colour depth (bit depth) of a bitmap image is:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Colour depth is bits per pixel — more bits means more possible colours (8 bits → 256, 24 bits → 16.7 million).
How many bits of colour depth are needed to store 256 different colours?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
$2^8 = 256$, so 8 bits per pixel give 256 colours.
What does the file header of a bitmap image store?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
The header is metadata: without the width and colour depth the pixel bytes cannot be split into rows and pixels. A drawing list belongs to a vector file.
ビットマップのファイルサイズ
- バイトにするには8で割り、どの接頭辞ファミリーを使用するかによって1000または1024で割る。どちらを使用したか明記する。問題でヘッダーのサイズが与えられている場合は加算する。
- A $3000 \times 2000$ image at 24 bits per pixel is $1.44 \times 10^8$ bits, which is 18.0 MB using decimal prefixes or 17.2 MiB using binary ones. Both are accepted when the working shows which.
A $100 \times 100$ pixel image has a colour depth of 24 bits. What is the size of its uncompressed pixel data in bits, excluding the header?
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
サイズ $=$ 幅 $\times$ 身長 $\times$ 奥行き $= 100 \times 100 \times 24 = 240\,000$ bits.
worked example: 写真と動画のサイズを計算する
- ある写真は$4000 \times 3000$ピクセルで、色深度は24ビットである。ファイルサイズをMiBで求めよ。
- $4000 \times 3000 \times 24 = 2.88 \times 10^8$ビット。8で割って:$3.6 \times 10^7$バイト。$1024^2$で割って:34.3 MiB。
- 動画はビットマップフレームの連続である。 圧縮しない場合のサイズは、1フレーム $\times$ フレームレート $\times$ 時間長である。秒間30フレーム、$1920 \times 1080$、24ビットの場合:$30 \times 1920 \times 1080 \times 24 \approx 1.5 \times 10^9$ビット、約187 MB、每秒。したがって動画は常に圧縮される。

An uncompressed video is $1920 \times 1080$ pixels, 24-bit colour, $30$ frames per second. How many bits does ONE second need? Give the answer to two significant figures, typed like 1.5e9.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
$1920 \times 1080 \times 24 = 4.98 \times 10^{7}$ bits per frame, times $30$ frames $= 1.5 \times 10^{9}$ bits, about $187\ \text{MB}$ for every second. That is why video is always compressed.
設定の変更
- 画像解像度を下げる:ピクセル数が減り、ファイルサイズも小さくなるが、詳細が減少する。拡大すると各ピクセルが画面のより広い部分を占めるため、画像がブロック状に見える。
- 色深度を下げる:ピクセルあたりのビット数が減り、ファイルサイズも小さくなるが、滑らかなグラデーションにバンドングが見られ、本来グラデーションがある箇所に目立つ段差が生じる。
- どちらかを上げる:ファイルサイズが大きくなり、品質が向上する。"画像が悪くなる"ではなく、これらのシラバスタームで答えること。

Match each change to its effect on the image.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Answer in the syllabus terms, banding and blockiness, not "the picture gets worse".
ベクターグラフィックのエンコード方法
- ベクターグラフィックは、画像を描くための指示を描画リストとして記録する。これは、線、曲線、長方形、多角形、円などの幾何学的プリミティブである描画オブジェクトの順序付きリストである。
- 各描画オブジェクトにはプロパティが含まれる:位置や座標、線の色と太さ、塗りつぶしの色、半径などである。
- 表示時、プログラムは必要なサイズに応じて描画リストをレンダリングするため、品質の損失なくスケールできる。任意のピクセル詳細を記述できないため、写真には適さない。

ドットのグリッドではなく、形状とそのプロパティのリスト

A vector logo becomes blurry when you enlarge it a lot.
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Vectors are re-rendered from instructions at any size, so they stay sharp. It is bitmaps that blur when enlarged.
The main advantage of a vector graphic is that it:
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
Because it is drawn from instructions, a vector scales without blur — ideal for logos and diagrams (but not photos).
worked example: 選択の正当性を説明する
- ロゴは名刺とビルボードの両方に表示しなければならない。どのフォーマットを選び、なぜか? [3]
- ベクターグラフィック。描画オブジェクトとプロパティとして記録されているため、プログラムは必要なサイズで再レンダリングし、エッジは鮮明のままである。
- ビットマップは固定数のピクセルを持つため、ビルボードサイズに拡大すると各ピクセルが目立ち、ロゴがブロック状に見える。
- 写真については? ビットマップ:写真には記述すべき幾何形状がないため、各ピクセルの色を個別に記録する必要がある。
Which terms describe how a vector graphic is encoded? Select すべて that apply.
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
An ordered drawing list of drawing objects, each with properties. Colour depth is a bitmap term, bits per pixel.
between them の選択
| タスク | 選択 | 理由 |
|---|---|---|
| 写真 | ビットマップ | ピクセル単位の詳細は形状で記述できない |
| ロゴ、アイコン、道路標識 | ベクター | どのサイズでも鮮明、ファイルサイズが小さい |
| 設計図 | ベクター | 正確な幾何学、正確にスケール可能 |
| 絵画、テクスチャ | ビットマップ | 領域全体にわたる滑らかなトーンの詳細 |
Which format is better for storing a photograph?
難易度 1/5 · 100 コイン + 今日初回達成時の小ボーナス
A photo has complex per-pixel detail that cannot be described as shapes, so a bitmap is the right choice.
見落としやすいポイント
- ビット単位で計算し、8で一度だけ割り、1000または1024のいずれを使用したかを明記する。途中からビットとバイトを混ぜると、失点の原因となる。
- 画像解像度は画像のピクセル、スクリーン解像度はディスプレイである。問題文でその一方が指定されている。
- ベクターは"線で作られた絵"ではなく、プロパティを持つオブジェクトの描画リストである。3つの用語を使用すること。
- "正当化"への回答は、フォーマットをタスク(ビルボード、写真)に結びつけるもの。定義だけでは正当化にならない。
理解できましたか
- ビットマップはファイルヘッダーの後にすべてのピクセルの色を記録する;画像解像度はピクセルサイズ、色深度はビット/ピクセル数である
- バイトサイズ = 幅 $\times$ 高さ $\times$ 色深度;動画は $\times$ フレームレート $\times$ 時間長を加える
- 解像度を下げるとブロック状になり、色深度を下げるとバンドングが生じ、どちらもファイルサイズが小さくなる
- ベクトル図形とは、プロパティを持つ描画オブジェクトの描画リストであり、あらゆるサイズでレンダリングされるため、縮小しても品質が低下せず、また写真も保存できない。
何が問題でしたか?この内容はサイトの運営チームだけが確認します。