It sets the string to the value of the parameter.
2564 {
2565 string[] lines = desc.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
2566 int maxlen = 20;
2567 for (int i = 0; i < lines.Length; i++)
2568 {
2569 if (i < maxlen)
2570 {
2571 string[] sp = lines[i].Split('=');
2572 if (sp[0] == "ImageJ")
2573 ImageJ = sp[1];
2574 if (sp[0] == "images")
2575 images = int.Parse(sp[1], CultureInfo.InvariantCulture);
2576 if (sp[0] == "channels")
2577 channels = int.Parse(sp[1], CultureInfo.InvariantCulture);
2578 if (sp[0] == "slices")
2579 slices = int.Parse(sp[1], CultureInfo.InvariantCulture);
2580 if (sp[0] == "frames")
2581 frames = int.Parse(sp[1], CultureInfo.InvariantCulture);
2582 if (sp[0] == "hyperstack")
2583 hyperstack = bool.Parse(sp[1]);
2584 if (sp[0] == "mode")
2585 mode = sp[1];
2586 if (sp[0] == "unit")
2587 unit = sp[1];
2588 if (sp[0] == "finterval")
2589 finterval = double.Parse(sp[1], CultureInfo.InvariantCulture);
2590 if (sp[0] == "spacing")
2591 spacing = double.Parse(sp[1], CultureInfo.InvariantCulture);
2592 if (sp[0] == "loop")
2593 loop = bool.Parse(sp[1]);
2594 if (sp[0] == "min")
2595 min = double.Parse(sp[1], CultureInfo.InvariantCulture);
2596 if (sp[0] == "max")
2597 max = double.Parse(sp[1], CultureInfo.InvariantCulture);
2598 if (sp[0] == "8bitcolor")
2599 bit8color = bool.Parse(sp[1]);
2600 }
2601 else
2602 return;
2603 }
2604
2605 }