private void InitSerializationProperties() { ByteOrder = ImageByteOrder.LittleEndian; string propVal; if (ImageSerializationProperties.TryGetValue(AdvKeywords.KEY_IMAGE_BYTE_ORDER, out propVal)) { if (propVal == "BIG-ENDIAN") { ByteOrder = ImageByteOrder.BigEndian; } } if (ImageSerializationProperties.TryGetValue(AdvKeywords.KEY_IMAGE_DYNABITS, out propVal)) { DynaBits = int.Parse(propVal); } else { DynaBits = 16; } }
private void InitSerializationProperties() { ByteOrder = ImageByteOrder.LittleEndian; string propVal; if (ImageSerializationProperties.TryGetValue(AdvKeywords.KEY_IMAGE_BYTE_ORDER, out propVal)) { if (propVal == "BIG-ENDIAN") ByteOrder = ImageByteOrder.BigEndian; } if (ImageSerializationProperties.TryGetValue(AdvKeywords.KEY_IMAGE_DYNABITS, out propVal)) DynaBits = int.Parse(propVal); else DynaBits = 16; }
private void InitSerializationProperties() { ByteOrder = ImageByteOrder.LittleEndian; string propVal; if (ImageSerializationProperties.TryGetValue(AdvKeywords.KEY_IMAGE_BYTE_ORDER, out propVal)) { if (propVal == "BIG-ENDIAN") ByteOrder = ImageByteOrder.BigEndian; } }