It sets the string to the value of the parameter.
2820 {
2821 string[] lines = desc.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
2822 int maxlen = 20;
2823 for (int i = 0; i < lines.Length; i++)
2824 {
2825 if (i < maxlen)
2826 {
2827 string[] sp = lines[i].Split('=');
2828 if (sp[0] == "ImageJ")
2829 ImageJ = sp[1];
2830 if (sp[0] == "images")
2831 images = int.Parse(sp[1], CultureInfo.InvariantCulture);
2832 if (sp[0] == "channels")
2833 channels = int.Parse(sp[1], CultureInfo.InvariantCulture);
2834 if (sp[0] == "slices")
2835 slices = int.Parse(sp[1], CultureInfo.InvariantCulture);
2836 if (sp[0] == "frames")
2837 frames = int.Parse(sp[1], CultureInfo.InvariantCulture);
2838 if (sp[0] == "hyperstack")
2839 hyperstack = bool.Parse(sp[1]);
2840 if (sp[0] == "mode")
2841 mode = sp[1];
2842 if (sp[0] == "unit")
2843 unit = sp[1];
2844 if (sp[0] == "finterval")
2845 finterval = double.Parse(sp[1], CultureInfo.InvariantCulture);
2846 if (sp[0] == "spacing")
2847 spacing = double.Parse(sp[1], CultureInfo.InvariantCulture);
2848 if (sp[0] == "loop")
2849 loop = bool.Parse(sp[1]);
2850 if (sp[0] == "min")
2851 min = double.Parse(sp[1], CultureInfo.InvariantCulture);
2852 if (sp[0] == "max")
2853 max = double.Parse(sp[1], CultureInfo.InvariantCulture);
2854 if (sp[0] == "8bitcolor")
2855 bit8color = bool.Parse(sp[1]);
2856 }
2857 else
2858 return;
2859 }
2860
2861 }