Hi almut, that looks good on the first fly! Now i have to study how to use it. Thanks!!!
Update:
Hi almut! I tried to find a faster way with Win32::GUI::DIBitmap but without success! There is also the same slow function getpixel. I have read in another forum following about getpixel:
"..but what do you thing GetPixel() is doing internally? Each time you call it, it must first read the header, get the bits, calculate the size of a pixel, calculate the the size of a row, calculate which row, calculate how far into that row, get the pixel, convert it to a COLORREF then give it back to you. ALL FOR ONE PIXEL! This is for every single call. Use a DIB and access the bits directly ....."
I guess i need an access directly to the memory-adresses to get the information of the pixels faster.. But i dont know how i can make it :-(