Hi Experts,
Could you please help us in improving the spped of some graphics. I am attaching the sample code for your reference. We are drawing lines and then selecting them on a picturebox container using C#. The code is working fine but its a bit slow
Thanks for your time and effort in advance. The Code is below pasted.
Regards,
Sam
using
namespace
{
#region
#endregion
SKLAction = MouseMode;
}
img = (
backimg = (
BitMapOnSelect =
m_BufferBitmap =
m_BufferGraphics =
m_Pos1 = PtPicturebox;
mu =
md =
SKLAction =
FirstLineFlag =
myPen =
m_BufferGraphics.DrawLine(myPen,
objLineData.start = m_Pos1;
objLineData.end = m_Pos2;
objLineData.LinePen = myPen;
objLineData.ActualSelected =
objLineData.Selected =
LineArray.Add(objLineData);
m_Pos2 =
ArrayLine = (
LineArray.Clear();
ArrayLine[i].ActualSelected =
LineArray.Add(ArrayLine[i]);
MouseClickPosition =
objSelection.GetSelection();
myPen.StartCap =
myPen.EndCap =
m_BufferGraphics.DrawLine(x.LinePen,
DrawForm(e.Graphics);
gr.DrawImage(m_BufferBitmap, 0, 0);
objlineData.start = x.start;
objlineData.end = x.end;
objlineData.LinePen = x.LinePen;
objlineData.Selected = x.Selected;
objlineData.ActualSelected = x.ActualSelected;
Img = (