You might want to check into ScanLines. They are a lot faster than .Pixels[x, y].. And I don't see why all colours can't be in an array? The bitmap does it too![]()
You might want to check into ScanLines. They are a lot faster than .Pixels[x, y].. And I don't see why all colours can't be in an array? The bitmap does it too![]()
if i make an array with a length of 10.000.000 it gives me a stack overflow, which i have extended to the max.
but the way i described earlyer all the colors can be in an array becase:
there are not 10mil colors in a pic
i only use the colors that exist in the first selection(filtered by the colors of the other selections
if the selection is 200x200 that wold give a max of 40.000 colors
hmm i think i didn't explain that 10 mil right
example:
array[2577431][0] := 10 //x of color... point 1
array2[2577431][0] := 10 //y of color... point 1
btw thanks for the advice
and i don't know how images are stored? do they even stay in the memory or am i confused with movies now?
//Edit
tryed to add the new system for two houres.. didn't get it to work.
the array of array of array of integer was very confusing with the setlengths etc and i think i need to sleep a bit more
well Sunday i am free.. i guess/hope then i can finish it! YEA!!
Last edited by nielskool; 05-22-2010 at 11:44 PM.
We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
http://www.frement.net/srl/simba_user4.png
Little update:
Colors in the array works(way faster than txt files)
Functions ready for the dtm search
Todo:
Finish the dtm search
Now it must do 150.000 calculations for every possible DTM, when i finish the new procedure it should be reduced to 500 calculations max for every DTM, so it should be allot faster!!
For now it is time for me to sleep(2:00AM).
I hope to finish version 1.0 today:P(release)(still limited to a 2 point DTM)
Last edited by nielskool; 05-23-2010 at 12:25 AM.
We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
http://www.frement.net/srl/simba_user4.png
new topic made. relaese topic
We merely play "against the rules". We cheat. Thats what we are good at, thats what we do.
http://www.frement.net/srl/simba_user4.png
There are currently 1 users browsing this thread. (0 members and 1 guests)