Last change
on this file was
4,
checked in by zhangj, 11 years ago
|
Initial import--MML version from SOLEIL@2013
|
File size:
560 bytes
|
Line | |
---|
1 | function showimage(guitag) |
---|
2 | %display accelerator element jpeg file as specified in THERING.elementimage field |
---|
3 | %element index is stored in guitag provided as input |
---|
4 | |
---|
5 | ElementIcons=getappdata(0,'ElementIcons'); |
---|
6 | |
---|
7 | index=get(findobj(0,'tag',guitag),'Userdata'); %userdata holds index of element in THERING |
---|
8 | picdef = ElementIcons{index}.elementimage; |
---|
9 | k=findstr(picdef,'jpg'); %find index in image string |
---|
10 | |
---|
11 | %each image in seperate figure |
---|
12 | hb = figure; |
---|
13 | img=imread(picdef(1:k-2),'jpeg'); %read image |
---|
14 | image(img); %load image |
---|
Note: See
TracBrowser
for help on using the repository browser.