source:
prextra/impaintbrush.m
@
20
Last change on this file since 20 was 5, checked in by bduin, 14 years ago | |
---|---|
File size: 290 bytes |
Line | |
---|---|
1 | function impaintbrush(h,sz) |
2 | % impaintbrush(h,sz) |
3 | % |
4 | % Set the brush size as it is used in impaint.m. |
5 | |
6 | allUD = get(h,'UserData'); |
7 | |
8 | if ~isfield(allUD,'impaint') |
9 | error('No overlay is defined.'); |
10 | end |
11 | UD = allUD.impaint; |
12 | |
13 | UD.brushsz = sz; |
14 | |
15 | allUD.impaint = UD; |
16 | set(h,'UserData',allUD); |
17 | |
18 | return |
19 | |
20 |
Note: See TracBrowser
for help on using the repository browser.