public void CloneFromImage(Image image) { this.m_ImageColor = image.color; this.m_IsPreserveAspect = image.preserveAspect; this.m_ImageType = image.type; this.m_FillMethod = image.fillMethod; this.m_FillAmount = image.fillAmount; switch (image.fillMethod) { case Image.FillMethod.Radial180: this.m_fillOrigin180 = (Image.Origin180)image.fillOrigin; break; case Image.FillMethod.Radial360: this.m_fillOrigin360 = (Image.Origin360)image.fillOrigin; break; case Image.FillMethod.Radial90: this.m_fillOrigin90 = (Image.Origin90)image.fillOrigin; break; case Image.FillMethod.Horizontal: this.m_fillOriginHorizontal = (Image.OriginHorizontal)image.fillOrigin; break; case Image.FillMethod.Vertical: this.m_fillOriginVertical = (Image.OriginVertical)image.fillOrigin; break; } }
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; }
public FillMethodRadial180( Image.Origin180 origin = Image.Origin180.Bottom) { Origin = origin; }