Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Is there a way to get and set the color of a part of a picture that is smaller than a pixel. I want to search for a color and change every instance of one color to another color, however it looks bad when using pixels. Thanks for your help.
  • *Experts*
Posted

Im not aware of any method that would allow you to go smaller than a pixel........

When changing sinlge pixels the image probably doesn't look good because of antialiasing. A lot of image editing programs automatically add pixels of different color around an "object" in the image so it looks smooth.

Posted
A pixel is made up of red green and blue, how can I see each individual color so as to change those, or at least add red where red should be and so on? Thanks in advance.
Posted

GetPixels and LockBits()

 

I'm just a .Net newbie, but from what I've read you can still use GetPixel to access the ARGB/RGB color data with VB.Net, but the question is do you want to...

 

because it seems like using GetPixel to loop through a bunch of pixels in VB.Net is really slow, because of all the LockBits and UnlockBits going on behind the scenes.

 

So is seems it's better to take charge and do the LockBits yourself. Here's some code snippets I found to get you started:

 

http://www.dotnet247.com/247reference/msgs/28/140355.aspx

http://www.dotnet247.com/247reference/msgs/13/66263.aspx

 

It's interesting...I think dealing with a VB.Net color space is is going to mean a little bit of a re-orientation to thinking about manipulating graphics at the pixel level (or in memory).

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...