<< getsymbol graphics winclose >>

removed >> removed > 5-4-1 > graphics > show_pixmap

show_pixmap

pixmapバッファを画面に送信する

呼び出し手順

show_pixmap()

説明

グラフィックウインドウの pixmap プロパティが "on"の場合, 描画データは画面ではなく,pixmapメモリに送信されます.

show_pixmap()命令はpixmapを画面に送信します.

pixmapモードは滑らかなアニメーションを得るために使用されます. このプロパティはfigureエンティティフィールドの中にあります ( figure_properties参照).

f=gcf();f.pixmap='on'; //pixmapモードを設定
a=gca();a.data_bounds=[0 0; 10 10];

//2つの矩形を構築
xrects([0;10;1;1],5);r1=gce();r1=r1.children;
xrects([0;1;1;1],13);r2=gce();r2=r2.children;

//アニメーションループ
for k=1:1000
  //pixmapバッファに矩形を描画
  move(r1,[0.01,-0.01]);move(r2,[0.01,0.01]) 
  //pixmapバッファを表示
  show_pixmap()
end

参照

履歴

VersionDescription
5.4.0 show_pixmap() is declared obsolete. Please use gcf().immediate_drawing instead.
5.4.1 Last Scilab version supporting show_pixmap().

Report an issue
<< getsymbol graphics winclose >>