Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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,

Posted (edited)

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 don't know how to use a colormatrix.

Edited by IWeb

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...