Number of Annotations on an image
Posted: Thu Oct 22, 2009 3:44 am
We are evaluating the software and one of our requirements are a large amount of image references on a single view 2000+ icons where
their location will change every 1 second. I tried to load up 100 of these images as a reference and it took 14+ seconds to load up.
Am I doing something wrong or this is how it behaves.
Here is the sample code:
annotationViewer1.Annotations[0].Capacity = 200;
System.Random RandNum = new System.Random();
for (int i = 0; i < 100; i++)
{
int x = RandNum.Next(100, 750);
int y = RandNum.Next(100, 750);
ReferencedImageAnnotation ann = new ReferencedImageAnnotation();
ann.Filename = "AirASwHostile.ico";
ann.Location = new PointF(x, y);
ann.Size = new SizeF(50, 50);
//ann.ZOrder = zOrder;
try
{
annotationViewer1.Annotations[0].Add(ann);
}
catch (InvalidOperationException ex)
{
MessageBox.Show(ex.Message, "Building annotation");
}
}
their location will change every 1 second. I tried to load up 100 of these images as a reference and it took 14+ seconds to load up.
Am I doing something wrong or this is how it behaves.
Here is the sample code:
annotationViewer1.Annotations[0].Capacity = 200;
System.Random RandNum = new System.Random();
for (int i = 0; i < 100; i++)
{
int x = RandNum.Next(100, 750);
int y = RandNum.Next(100, 750);
ReferencedImageAnnotation ann = new ReferencedImageAnnotation();
ann.Filename = "AirASwHostile.ico";
ann.Location = new PointF(x, y);
ann.Size = new SizeF(50, 50);
//ann.ZOrder = zOrder;
try
{
annotationViewer1.Annotations[0].Add(ann);
}
catch (InvalidOperationException ex)
{
MessageBox.Show(ex.Message, "Building annotation");
}
}