|
-
Feb 12th, 2012, 10:25 AM
#1
Thread Starter
New Member
DrawImage and defining color to copy instead of mask.
I am using VB 2008 & drawimage function to copy certain colored parts of image A to Image B. My problem is image A has many different colored patches on it and I only want to copy the ones that have a certain RGB value. I was going to set the masking color to the RGB value but remembered that defines the color to ignore - I’m interested in the opposite.
Basically I'm looking for a "Copy only pixels of certain color" technique.
I know I could loop through all the pixels and check it’s color, but it’s way slow and I’m hoping there’s something better.
Thanks in advance!
P.S. As a side note, after getting the copy function working, my next requirements will be to change all the colors on a image to be the same, then overlay that resulting image onto a second image, perferalby with about 50% transparency. I think I have that figured out though...
Last edited by tscorpio; Feb 12th, 2012 at 10:32 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|