【求助】已知坐标如何画十字?
CenterX2=X_axis2; //中心坐标CenterX2CenterY2=Y_axis2; //中心坐标CenterY2for(i=0;i<m_CapInfo2.Height;i++){ for(j=0;j<m_CapInfo2.Width;j++) { if (pData2[i*m_CapInfo2.Width+j]>180) { if(sqrt((i-CenterY2)*(i-CenterY2)+(j-CenterX2)*(j-CenterX2))<=25)//Y坐标与CenterX的差值大于光斑半径进行画圆,[color=#FF0000]想把这个地方改正画十字线,如何更改呢?[/color] { } else //其它用黑色填充 { pData2[i*m_CapInfo.Width+j] = 10; } }