It sets the string to the value of the parameter.
2577 {
2578 string[] lines = desc.Split(new string[] { "\r\n", "\r", "\n" }, StringSplitOptions.None);
2579 int maxlen = 20;
2580 for (int i = 0; i < lines.Length; i++)
2581 {
2582 if (i < maxlen)
2583 {
2584 string[] sp = lines[i].Split('=');
2585 if (sp[0] == "ImageJ")
2587 if (sp[0] == "images")
2588 images =
int.Parse(sp[1], CultureInfo.InvariantCulture);
2589 if (sp[0] == "channels")
2590 channels =
int.Parse(sp[1], CultureInfo.InvariantCulture);
2591 if (sp[0] == "slices")
2592 slices =
int.Parse(sp[1], CultureInfo.InvariantCulture);
2593 if (sp[0] == "frames")
2594 frames =
int.Parse(sp[1], CultureInfo.InvariantCulture);
2595 if (sp[0] == "hyperstack")
2597 if (sp[0] == "mode")
2599 if (sp[0] == "unit")
2601 if (sp[0] == "finterval")
2602 finterval =
double.Parse(sp[1], CultureInfo.InvariantCulture);
2603 if (sp[0] == "spacing")
2604 spacing =
double.Parse(sp[1], CultureInfo.InvariantCulture);
2605 if (sp[0] == "loop")
2606 loop =
bool.Parse(sp[1]);
2607 if (sp[0] == "min")
2608 min =
double.Parse(sp[1], CultureInfo.InvariantCulture);
2609 if (sp[0] == "max")
2610 max =
double.Parse(sp[1], CultureInfo.InvariantCulture);
2611 if (sp[0] == "8bitcolor")
2613 }
2614 else
2615 return;
2616 }
2617
2618 }
bool bit8color
Definition Bio.cs:2512