pagego Posted March 5, 2004 Posted March 5, 2004 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. Quote
*Experts* mutant Posted March 5, 2004 *Experts* Posted March 5, 2004 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. Quote
pagego Posted March 5, 2004 Author Posted March 5, 2004 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. Quote
hDC_0 Posted March 6, 2004 Posted March 6, 2004 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). Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.