public override void Draw(IGraphics graphics, RenderOptions options)
{
System.Drawing.Pen blackpen = new System.Drawing.Pen(Color.Black, 0.1f);
blackpen.DashStyle = System.Drawing.Drawing2D.DashStyle.Solid;
System.Drawing.Image img = System.Drawing.Image.FromFile(@"C:\temp\segment.png");
RectangleF rect = new RectangleF(Bounds.X + Bounds.Width/4, Bounds.Y, Bounds.Width / 2, Bounds.Height / 2);
graphics.DrawImage(img, rect);
System.Drawing.Pen graypen = new System.Drawing.Pen(Color.Silver, 0.1f);
graphics.DrawRectangle(graypen, Bounds.X, Bounds.Y, Bounds.Width, Bounds.Height / 2);
graphics.DrawRectangle(blackpen, Bounds.X, Bounds.Y + Bounds.Height/2, Bounds.Width, Bounds.Height/2);
RectangleF stringRect = new RectangleF(Bounds.X, Bounds.Y + Bounds.Height / 2 + Bounds.Height / 16, Bounds.Width, Bounds.Height / 2);
StringFormat format = new StringFormat();
format.Alignment = StringAlignment.Center;
format.LineAlignment = StringAlignment.Center;
Font font = new Font("Arial", 3, FontStyle.Regular, GraphicsUnit.Pixel);
System.Drawing.SolidBrush brsh = new System.Drawing.SolidBrush(Color.Black);
graphics.DrawString(this.Text, font, brsh, stringRect, format);
this.DrawManipulators(graphics, true);
}
I have inserted the code above. Can you please provide a sample - how to implement drawmanipulators().