Treefrog.Presentation.Annotations.CircleAnnot.SizeToBound C# (CSharp) 메소드

SizeToBound() 공개 메소드

public SizeToBound ( Rectangle bound ) : void
bound Treefrog.Framework.Imaging.Rectangle
리턴 void
        public void SizeToBound(Rectangle bound)
        {
            Center = bound.Center;
            Radius = (float)Math.Sqrt(bound.Width * bound.Width + bound.Height * bound.Height) / 2;
        }