Hi,
I'm currently using standard AddNewObject method to add objects in a loop:
for (int i = 0; i < _keyPoints->Count; i++)
{
key = &(_keyPoints->Data[i]);
hobj = _paint->AddNewObject();
radius = ceil(key->scale * SiftParams.InitSigma); // initial sigma
_paint->ObjPenColor[hobj] = clAqua;
_paint->ObjKind[hobj] = iekELLIPSE;
_paint->ObjTop[hobj] = key->y - radius + addY;
_paint->ObjLeft[hobj] = key->x - radius + addX;
_paint->ObjWidth[hobj] = radius*2;
_paint->ObjHeight[hobj] = radius*2;
}
If there are 5000 objects, it can take a while for a loop to finish.
Is it possible somehow to add a bunch off objects at once?
If not, any suggestion to speed up object addition would be highly appreciated.
Objects are only visible and can not be selected, resized or moved.
Maybe to draw them on a bitmap and then add bitmap as object!?
TIA,
Siniša