public ImageProperty(ImageProperty other)
        {
            m_ImageColor       = other.m_ImageColor;
            m_ImageType        = other.m_ImageType;
            m_IsPreserveAspect = other.m_IsPreserveAspect;
            m_FillMethod       = other.m_FillMethod;

            switch (other.m_FillMethod)
            {
            case Image.FillMethod.Radial180:
                m_fillOrigin180 = other.m_fillOrigin180;
                break;

            case Image.FillMethod.Radial360:
                m_fillOrigin360 = other.m_fillOrigin360;
                break;

            case Image.FillMethod.Radial90:
                m_fillOrigin90 = other.m_fillOrigin90;
                break;

            case Image.FillMethod.Horizontal:
                m_fillOriginHorizontal = other.m_fillOriginHorizontal;
                break;

            case Image.FillMethod.Vertical:
                m_fillOriginVertical = other.m_fillOriginVertical;
                break;
            }
            m_FillAmount = other.m_FillAmount;
        }
        private void SetImageFillOriginProperty(ref ImageProperty source, ref ImageProperty data)
        {
            switch (data.m_FillMethod)
            {
            case Image.FillMethod.Radial180:
                source.m_fillOrigin180 = data.m_fillOrigin180;
                break;

            case Image.FillMethod.Radial360:
                source.m_fillOrigin360 = data.m_fillOrigin360;
                break;

            case Image.FillMethod.Radial90:
                source.m_fillOrigin90 = data.m_fillOrigin90;
                break;

            case Image.FillMethod.Horizontal:
                source.m_fillOriginHorizontal = data.m_fillOriginHorizontal;
                break;

            case Image.FillMethod.Vertical:
                source.m_fillOriginVertical = data.m_fillOriginVertical;
                break;
            }
        }
        //根据Image 的Fillmothed 设置fillorgin的值
        private void SetImageFillOriginProperty(ref ImageProperty data)
        {
            switch (data.m_FillMethod)
            {
            case Image.FillMethod.Radial180:
                m_TargetImage.fillOrigin = (int)data.m_fillOrigin180;
                break;

            case Image.FillMethod.Radial360:
                m_TargetImage.fillOrigin = (int)data.m_fillOrigin360;
                break;

            case Image.FillMethod.Radial90:
                m_TargetImage.fillOrigin = (int)data.m_fillOrigin90;
                break;

            case Image.FillMethod.Horizontal:
                m_TargetImage.fillOrigin = (int)data.m_fillOriginHorizontal;
                break;

            case Image.FillMethod.Vertical:
                m_TargetImage.fillOrigin = (int)data.m_fillOriginVertical;
                break;
            }
        }
        //初始化图片的基本属性
        private void InitialedImageProperty(ref ImageProperty imageProperty)
        {
            if (m_TargetImage == null)
            {
                return;
            }
            if (imageProperty == null)
            {
                imageProperty = new ImageProperty();
            }

            imageProperty.m_ImageColor       = m_TargetImage.color;
            imageProperty.m_IsPreserveAspect = m_TargetImage.preserveAspect;
            imageProperty.m_ImageType        = m_TargetImage.type;

            imageProperty.m_FillMethod = m_TargetImage.fillMethod;
            imageProperty.m_FillAmount = m_TargetImage.fillAmount;

            switch (m_TargetImage.fillMethod)
            {
            case Image.FillMethod.Radial180:
                imageProperty.m_fillOrigin180 = (Image.Origin180)m_TargetImage.fillOrigin;
                break;

            case Image.FillMethod.Radial360:
                imageProperty.m_fillOrigin360 = (Image.Origin360)m_TargetImage.fillOrigin;
                break;

            case Image.FillMethod.Radial90:
                imageProperty.m_fillOrigin90 = (Image.Origin90)m_TargetImage.fillOrigin;
                break;

            case Image.FillMethod.Horizontal:
                imageProperty.m_fillOriginHorizontal = (Image.OriginHorizontal)m_TargetImage.fillOrigin;
                break;

            case Image.FillMethod.Vertical:
                imageProperty.m_fillOriginVertical = (Image.OriginVertical)m_TargetImage.fillOrigin;
                break;
            }
        }
 public ImageConfige(LocalizationManager.LanguageType language, ImageProperty imageProperty)
 {
     m_Language      = language;
     m_LanguageName  = m_Language.ToString();
     m_ImageProperty = new ImageProperty(imageProperty);
 }
 public ImageConfige()
 {
     m_LanguageName  = m_Language.ToString();
     m_ImageProperty = new ImageProperty();
 }