I am getting "Generic Error" on trying to draw a line on a loaded image. I used the followig code. Please help.
Code: Select all
x[index] = gdViewer1.GetMouseLeftInDocument();
y[index] = gdViewer1.GetMouseTopInDocument();
//Imaging.draw
try
{
//if (Imaging.DrawCircle(m_TmpImage, x[index], y[index], 10, Imaging.ARGB(255, 120, 120, 255), 5, true) != GdPictureStatus.OK)
// MessageBox.Show("Error: " + Imaging.GetStat().ToString());
if (Imaging.DrawLine(m_TmpImage, x[index], y[index] - 10,
x[index], y[index] + 10, 5, Imaging.ARGB(255, 120, 120, 255), true) != GdPictureStatus.OK)
MessageBox.Show("Error: " + Imaging.GetStat().ToString());
}
catch (Exception ex)
{ }