CCameraDS.h中修改
bool CCameraDS::OpenCamera(int nCamID, bool bDisplayProperties=true, int nWidth = 320, int nHeight = 240);
成:bool OpenCamera(int nCamID, bool bDisplayProperties, int nWidth, int nHeight);即可

使用方法:

文章讲述了在CCameraDS类的OpenCamera方法中,通过简化参数调整,将boolCCameraDS::OpenCamera重写为boolOpenCamera,以提高代码简洁性和易用性。
CCameraDS.h中修改
bool CCameraDS::OpenCamera(int nCamID, bool bDisplayProperties=true, int nWidth = 320, int nHeight = 240);
成:bool OpenCamera(int nCamID, bool bDisplayProperties, int nWidth, int nHeight);即可

使用方法:


被折叠的 条评论
为什么被折叠?