|
-
May 20th, 2002, 08:12 PM
#1
Question about EXEActiveX
This is the case:
I'm mapping the images in order to get the percentage of each color that compose them, so, to make the algorithm faster, i split the images in different areas or parts, just to be able to process them in parallel.
I have made a EXEActiveX to process this areas, which has the Instance property in SimpleUse. The main function has a parameter which contains the number of part that the image will be split, so I dim a array with as objects as parts specified, that i will use this way:
For i = 1 To UBound(Areas, 1)
For J = 1 To UBound(Areas, 2)
Contador = Contador + 1
Set Procesadores(Contador) = New ProcClr
Procesadores(Contador).ValorAmplitudAzul = AmplitudAzul
Procesadores(Contador).ValorAmplitudRojo = AmplitudRojo
Procesadores(Contador).ValorAmplitudVerde = AmplitudVerde
Procesadores(Contador).VectorInfo = QueVector
Procesadores(Contador).ProcesarArea InfoBitmap.bmiHeader.biWidth, InfoBitmap.bmiHeader.biHeight, Areas(i, J).PosXUL, Areas(i, J).PosYUL, Areas(i, J).PosXBR, Areas(i, J).PosYBR
Next
Next
And here is the problem: when i call the method "ProcesarArea" i spect to have the control back in order to keep instancing the other objects and process the remaining areas, but i'm not return ed the control until the method finishes processing the area.
So, what's wrong here?. Is there a way to get the result that i want. I would really apreciate if you answer me as soon as possible.
P.D: I'm not using any timer control or SetTimer API
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|