Page 1 of 1

Number of Annotations on an image

Posted: Thu Oct 22, 2009 3:44 am
by acutrek
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");
}
}

Re: Number of Annotations on an image

Posted: Thu Oct 22, 2009 8:21 am
by Alex
Hello,

You can save annotations with image and later change their locations - this will run faster.

Best regards, Alexander

Re: Number of Annotations on an image

Posted: Thu Oct 22, 2009 4:39 pm
by acutrek
Do you mean saving them to disk ?
Can you please put a sample code on here to demonstrate this.

Thanks

Re: Number of Annotations on an image

Posted: Fri Oct 23, 2009 2:16 pm
by Alex
Hello,

Please send us (support@vintasoft.com) the project that demonstrates your needs and we will give your recommendations for the best perfomance.

Best regards, Alexander