setfocusautofocusedsdkcanon-sdk

Canon EDSDK set focus point


I'm trying to change the focus point on the Camera from a click in a live view frame using the EDSDK lib. I can't figure out how to do it, i mean, don't know what property I must set in order to change the focus point. Do you guys have any idea or any sample? By the way, I'm already able to change some other values like ISO, AV, TV or color temperature.

Thank you in advance!


Solution

  • Set an EdsPoint into kEdsPropID_Evf_ZoomPosition before triggering a focus command. The name "Zoom" is a bit confusing, but this property:

    Gets/sets the focus and zoom border position for live view. The focus and zoom border is set using EdsCameraRef, but obtained using live view image data, in otherwords, by using EdsEvfImageRef.