フィルターのクリア

cdata of uicontroal when resize the figure

1 回表示 (過去 30 日間)
khaled DAWOUD
khaled DAWOUD 2012 年 9 月 2 日
Hello everyone, i set the cdata of uicontrols to images but when i resize the figure the images doesn't fit the new size ?? how can i fix that ? Thanks all

回答 (1 件)

Jan
Jan 2012 年 9 月 2 日
編集済み: Jan 2012 年 9 月 2 日
The CData define the pixel colors and are not scaled to the actual size of the UICONTROL.
If you need to rescale the image defined by CData, you have either to use an image, whose ButtonDownFcn simulates the Callback of a button, or to implement a ResizeFcn callback, which resizes the CData e.g. by imresize() and update the CData manually. Both methods are not trivial.
I'd prefer to adjust the positions of the UICONTROLs, but not their size.

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by