Click here to Skip to main content
15,913,836 members
Home / Discussions / C#
   

C#

 
AnswerRe: Setting in C# Pin
RaviRanjanKr6-Nov-10 23:02
professionalRaviRanjanKr6-Nov-10 23:02 
AnswerRe: Setting in C# Pin
Paul Michalik6-Nov-10 23:13
Paul Michalik6-Nov-10 23:13 
QuestionHttpWebResponse/HttpWebRequest upload image Pin
TAREQ F ABUZUHRI6-Nov-10 9:08
TAREQ F ABUZUHRI6-Nov-10 9:08 
QuestionGet min and max color from a range of RGB colors from listbox Pin
pancakeleh6-Nov-10 8:01
pancakeleh6-Nov-10 8:01 
AnswerRe: Get min and max color from a range of RGB colors from listbox Pin
PIEBALDconsult6-Nov-10 8:17
mvePIEBALDconsult6-Nov-10 8:17 
AnswerRe: Get min and max color from a range of RGB colors from listbox Pin
Luc Pattyn6-Nov-10 8:33
sitebuilderLuc Pattyn6-Nov-10 8:33 
AnswerRe: Get min and max color from a range of RGB colors from listbox Pin
pancakeleh6-Nov-10 8:58
pancakeleh6-Nov-10 8:58 
GeneralRe: Get min and max color from a range of RGB colors from listbox Pin
_Erik_6-Nov-10 10:00
_Erik_6-Nov-10 10:00 
Looking at the image, I think you have directly added the colors to the Items collection of the ListBox, so what you see in the list is what ToString() method returns for each one of them. So having each color is as simple as using a foreach loop.

I think the problem you have here is the question itself. How will you define what color is bigger than other one? I mean: Blue color RGB values are 0, 0, 255; Red color RGB values are 255, 0, 0. So, which one is bigger?

Calculating the average color of an image has nothing to do with min or max color or RGB component. You just have to sum the RGB components separatedly, divide each sum by the number of pixels of your image, and you will have the RGB components of the average color of it.
GeneralRe: Get min and max color from a range of RGB colors from listbox [modified] Pin
pancakeleh6-Nov-10 19:59
pancakeleh6-Nov-10 19:59 
GeneralRe: Get min and max color from a range of RGB colors from listbox Pin
Dave Kreskowiak7-Nov-10 2:17
mveDave Kreskowiak7-Nov-10 2:17 
QuestionWhat am I doing wrong?? Sending serialized objects with Async Sockets.. [Solved] Pin
Jacob D Dixon6-Nov-10 7:53
Jacob D Dixon6-Nov-10 7:53 
AnswerRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Jacob D Dixon7-Nov-10 15:25
Jacob D Dixon7-Nov-10 15:25 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Peter_in_27807-Nov-10 15:31
professionalPeter_in_27807-Nov-10 15:31 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Jacob D Dixon8-Nov-10 17:56
Jacob D Dixon8-Nov-10 17:56 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
RaviRanjanKr7-Nov-10 16:47
professionalRaviRanjanKr7-Nov-10 16:47 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Jacob D Dixon8-Nov-10 17:57
Jacob D Dixon8-Nov-10 17:57 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Member 1841422-Mar-11 22:48
Member 1841422-Mar-11 22:48 
QuestionUSer Control Error Pin
SRJ925-Nov-10 17:19
SRJ925-Nov-10 17:19 
AnswerRe: USer Control Error Pin
OriginalGriff5-Nov-10 22:54
mveOriginalGriff5-Nov-10 22:54 
AnswerRe: USer Control Error Pin
_Erik_5-Nov-10 23:15
_Erik_5-Nov-10 23:15 
QuestionSocket error on service stop Pin
Jacob D Dixon5-Nov-10 14:40
Jacob D Dixon5-Nov-10 14:40 
AnswerRe: Socket error on service stop Pin
RaviRanjanKr5-Nov-10 19:08
professionalRaviRanjanKr5-Nov-10 19:08 
GeneralRe: Socket error on service stop [modified] Pin
Jacob D Dixon6-Nov-10 5:32
Jacob D Dixon6-Nov-10 5:32 
QuestionUnit testing Pin
Tichaona J5-Nov-10 7:51
Tichaona J5-Nov-10 7:51 
AnswerRe: Unit testing Pin
fjdiewornncalwe5-Nov-10 8:12
professionalfjdiewornncalwe5-Nov-10 8:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.