Exemplo n.º 1
0
        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;
            }
        }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 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;
     }
 }