vb.net: get|setpixel speedproblem

IWeb

Member
Joined
Sep 12, 2003
Messages
11
Hello,

I have to check the color of each pixel of a picture.
Therefore I load the picture into an bitmap object and I check every pixel with the getPixel function.
When I want to change a pixel I use setPixel.

This works great except, that it is extremly slow. :(

Does someone knows a better solution?

thanks,
 
I want to set pixels that are below a certain luminance (with HLS method), or that are in a color list (integer RGB values) to black and pixels that are above a certain luminance to white.

It should somehow work much faster with a colormatrix (at least, I think so) but I dont know how to use a colormatrix.
 
Last edited by a moderator:
Back
Top