Number of Annotations on an image

Questions, comments and suggestions concerning VintaSoft Annotation .NET Plug-in.

Moderator: Alex

Post Reply
acutrek
Posts: 2
Joined: Thu Oct 22, 2009 3:38 am

Number of Annotations on an image

Post 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");
}
}
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Number of Annotations on an image

Post by Alex »

Hello,

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

Best regards, Alexander
acutrek
Posts: 2
Joined: Thu Oct 22, 2009 3:38 am

Re: Number of Annotations on an image

Post by acutrek »

Do you mean saving them to disk ?
Can you please put a sample code on here to demonstrate this.

Thanks
Alex
Site Admin
Posts: 2303
Joined: Thu Jul 10, 2008 2:21 pm

Re: Number of Annotations on an image

Post 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
Post Reply