C++编码实现截图功能,鼠标选中的区域publicBitmapconverToBitmapGray(IplImageimg){if(img.dataOrder!=0){thrownewException("OnlyinterleavedImagesaresupportedforconversiontoBitmap");}intimageSize=img.width*img.height;intintStride=