It sets the string to the value of the parameter.
2498 {
2499 string[] lines = desc.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
2500 int maxlen = 20;
2501 for (int i = 0; i < lines.Length; i++)
2502 {
2503 if (i < maxlen)
2504 {
2505 string[] sp = lines[i].Split('=');
2506 if (sp[0] == "ImageJ")
2507 ImageJ = sp[1];
2508 if (sp[0] == "images")
2509 images = int.Parse(sp[1], CultureInfo.InvariantCulture);
2510 if (sp[0] == "channels")
2511 channels = int.Parse(sp[1], CultureInfo.InvariantCulture);
2512 if (sp[0] == "slices")
2513 slices = int.Parse(sp[1], CultureInfo.InvariantCulture);
2514 if (sp[0] == "frames")
2515 frames = int.Parse(sp[1], CultureInfo.InvariantCulture);
2516 if (sp[0] == "hyperstack")
2517 hyperstack = bool.Parse(sp[1]);
2518 if (sp[0] == "mode")
2519 mode = sp[1];
2520 if (sp[0] == "unit")
2521 unit = sp[1];
2522 if (sp[0] == "finterval")
2523 finterval = double.Parse(sp[1], CultureInfo.InvariantCulture);
2524 if (sp[0] == "spacing")
2525 spacing = double.Parse(sp[1], CultureInfo.InvariantCulture);
2526 if (sp[0] == "loop")
2527 loop = bool.Parse(sp[1]);
2528 if (sp[0] == "min")
2529 min = double.Parse(sp[1], CultureInfo.InvariantCulture);
2530 if (sp[0] == "max")
2531 max = double.Parse(sp[1], CultureInfo.InvariantCulture);
2532 if (sp[0] == "8bitcolor")
2533 bit8color = bool.Parse(sp[1]);
2534 }
2535 else
2536 return;
2537 }
2538
2539 }