truesize
イメージの表示サイズの調整
説明
truesize(
は Figure fig
,[mrows ncols]
)fig
内のイメージの表示サイズを、[mrows ncols]
次元 (ピクセル単位) に調整します。
truesize(
は各イメージ ピクセルが 1 つの画面ピクセルに対応するように表示サイズが調整されます。fig
)
figure を指定しない場合は、truesize
によって、現在の Figure の表示サイズに調整されます。
例
イメージの表示サイズの調整
サイズが 80 行 80 列のピクセルの既定チェッカーボード イメージを作成します。フル サイズの Figure ウィンドウを埋めるようにチェッカーボード イメージを表示します。このイメージはウィンドウを埋めるように拡大されます。
c = checkerboard; imshow(c,'InitialMagnification','fit')
各イメージ ピクセルが 1 つの画面ピクセルに対応するようにチェッカーボード イメージが表示されます。
truesize
Figure ウィンドウのサイズを任意のサイズに調整できます。イメージは Figure ウィンドウ内に合うようにスケーリングされます。
truesize([300 200]);
入力引数
fig
— Figure
gcf
(既定値) | Figure のハンドル
単一イメージまたはカラー バーを含む単一イメージを含む Figure。Figure のハンドルを指定します。既定では、truesize
は、ハンドル gcf
の現在の Figure を使用します。
[mrows ncols]
— 画面のサイズ
2 要素の数値の行ベクトル
イメージが占める画面のサイズ (ピクセル単位)。2 要素の数値の行ベクトルとして指定します。既定では、[mrows ncols]
はイメージ サイズと同じです。各イメージ ピクセルは 1 つのスクリーン ピクセルに対応します。
バージョン履歴
R2006a より前に導入
参考
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)