|
-
Sep 19th, 2005, 11:10 AM
#1
Thread Starter
Hyperactive Member
mixing color
I have two colors. I need to add the R, G, & B components and return a new color. I am having trouble.
-
Sep 19th, 2005, 11:48 AM
#2
Re: mixing color
How do you store the colours? And how do you want to mix them?
- ØØ -
-
Sep 19th, 2005, 12:00 PM
#3
Re: mixing color
well simply do
int r, g, b;
r = color1.R +color2.R .....
same with g and b
then check to see if any of the new r g b values exceed 255. If so, set them to 255
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 19th, 2005, 12:15 PM
#4
Re: mixing color
There is THREE ways of handling oversaturated colours. Clamping, scaling, and clipping...
- ØØ -
-
Sep 19th, 2005, 12:24 PM
#5
Re: mixing color
 Originally Posted by NoteMe
There is THREE ways of handling oversaturated colours. Clamping, scaling, and clipping...
- ØØ -
shut up
you should have a phd in this field by now why don't you post about those
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 19th, 2005, 12:39 PM
#6
Re: mixing color
Because I am lazy. I don't want to write 3 pages if he doesn't care about it..
ANd yes..where is my Ph.d...
- ØØ -
-
Sep 20th, 2005, 03:34 PM
#7
Thread Starter
Hyperactive Member
Re: mixing color
well simply do
int r, g, b;
r = color1.R +color2.R .....
same with g and b
This is actually what I tried before posting. The properties are read only.
-
Sep 20th, 2005, 04:17 PM
#8
Fanatic Member
Re: mixing color
 Originally Posted by Sneeden
This is actually what I tried before posting. The properties are read only.
Yes but you can create a new color from the new numbers and use that.
"so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman
-
Sep 20th, 2005, 05:22 PM
#9
Re: mixing color
 Originally Posted by Sneeden
This is actually what I tried before posting. The properties are read only.
yes just add the values to integer variables as I said (int r, g, b
then do Color newColor = Color.FromArgb (0, r,g,b);
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Sep 21st, 2005, 10:23 AM
#10
Thread Starter
Hyperactive Member
Re: mixing color
Thx Mr Polite. I missed that function. It only has the r,g,b args, no alpha.
1000 appreciations.
Sneed
-
Sep 21st, 2005, 08:30 PM
#11
Re: mixing color
 Originally Posted by Sneeden
Thx Mr Polite. I missed that function. It only has the r,g,b args, no alpha.
1000 appreciations.
Sneed
you're welcome read my signature
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
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
|