Creates a set of image properties from an array of strings. @see #getPropertiesAsArray @see #getProp(String) @see #setProp(String,String)
(String[] props)
| 1725 | * @see #setProp(String,String) |
| 1726 | */ |
| 1727 | public void setProperties(String[] props) { |
| 1728 | imageProperties = null; |
| 1729 | if (props==null) |
| 1730 | return; |
| 1731 | //IJ.log("setProperties: "+props.length+" "+getTitle()); |
| 1732 | for (int i=0; i<props.length; i+=2) { |
| 1733 | String key = props[i]; |
| 1734 | String value = props[i+1]; |
| 1735 | //IJ.log(" "+key+" "+value.length()); |
| 1736 | setProp(key,value); |
| 1737 | } |
| 1738 | } |
| 1739 | |
| 1740 | /** Returns the "Info" property string, or null if it is not found. |
| 1741 | * @see #getProp |
no test coverage detected