Exemple #1
0
 internal static EosFocus Create(Edsdk.EdsFocusInfo focus)
 {
     var focusPoints = new EosFocusPoint[focus.pointNumber];
     for (var i = 0; i < focusPoints.Length; ++i)
         focusPoints[i] = EosFocusPoint.Create(focus.focusPoint[i]);
     
     return new EosFocus
     {
         Bounds = new Rectangle {
             X = focus.imageRect.x,
             Y = focus.imageRect.y,
             Height = focus.imageRect.height,
             Width = focus.imageRect.width,
         },                
         ExecuteMode = focus.executeMode,                
         FocusPoints = focusPoints
     };
 }
Exemple #2
0
        internal static EosFocus Create(Edsdk.EdsFocusInfo focus)
        {
            var focusPoints = new EosFocusPoint[focus.pointNumber];

            for (var i = 0; i < focusPoints.Length; ++i)
            {
                focusPoints[i] = EosFocusPoint.Create(focus.focusPoint[i]);
            }

            return(new EosFocus
            {
                Bounds = new Rectangle {
                    X = focus.imageRect.x,
                    Y = focus.imageRect.y,
                    Height = focus.imageRect.height,
                    Width = focus.imageRect.width,
                },
                ExecuteMode = focus.executeMode,
                FocusPoints = focusPoints
            });
        }