VintaSoft Annotation .NET Plug-in Discussions

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

Board index < VintaSoft Imaging < VintaSoft Annotation .NET Plug-in Discussions

We are migrating to new forums engine, no new registration or posting currently available. TIA for your patience.

Number of Annotations on an image



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");
}
}


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


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


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


Page 1 from 1: 1