このページの内容は最新ではありません。最新版の英語を参照するには、ここをクリックします。
replace
クラス: mlreportgen.ppt.Picture
名前空間: mlreportgen.ppt
画像の置換
説明
は、ある画像を他の画像に置換します。pictureObj
= replace(picture
,replacementPicture
)
例
画像の置換
次のコマンドを実行して、この例で使用されているサポート ファイルにアクセスします。
openExample('rptgen/MatlabReportGeneratorSupportFilesExample');
プレゼンテーションを作成します。
import mlreportgen.ppt.* ppt = Presentation('myPictureReplacePresentation'); slide1 = add(ppt,'Blank');
mlreportgen.ppt.Picture
オブジェクトを作成します。
plane = Picture(which('b747.jpg')); plane.X = '1in'; plane.Y = '1in'; plane.Width = '5in'; plane.Height = '2in';
スライドに画像を追加します。
add(slide1,plane);
2 つ目の画像を作成します。
peppers = Picture(which('peppers.png')); peppers.X = '1in'; peppers.Y = '1in'; peppers.Width = '3in'; peppers.Height = '3in';
飛行機の画像をピーマンの画像に置き換えます。
replace(plane,peppers);
プレゼンテーションを閉じて表示します。
close(ppt); rptview(ppt);
入力引数
picture
— 置換する画像
mlreportgen.ppt.Picture
オブジェクト
置換する画像。mlreportgen.ppt.Picture
オブジェクトとして指定します。
replacementPicture
— 置換項目として使用する画像
mlreportgen.ppt.Picture
オブジェクト
置換項目として使用する画像。mlreportgen.ppt.Picture
オブジェクトとして指定します。
出力引数
pictureObj
— 画像
mlreportgen.ppt.Picture
オブジェクト
画像。mlreportgen.ppt.Picture
オブジェクトとして返されます。
バージョン履歴
R2015b で導入
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)