Click here to Skip to main content
15,912,507 members
Home / Discussions / C#
   

C#

 
AnswerRe: connect to SQL Pin
Roger Wright22-Jan-10 21:13
professionalRoger Wright22-Jan-10 21:13 
QuestionXna Graphics setting advise Pin
venomation22-Jan-10 19:00
venomation22-Jan-10 19:00 
AnswerRe: Xna Graphics setting advise Pin
Member 103390722-Jan-10 22:32
Member 103390722-Jan-10 22:32 
GeneralRe: Xna Graphics setting advise Pin
venomation23-Jan-10 7:28
venomation23-Jan-10 7:28 
QuestionImage processing Pin
Member 333222822-Jan-10 18:53
Member 333222822-Jan-10 18:53 
AnswerRe: Image processing Pin
OriginalGriff22-Jan-10 21:43
mveOriginalGriff22-Jan-10 21:43 
GeneralRe: Image processing Pin
Member 333222822-Jan-10 21:56
Member 333222822-Jan-10 21:56 
GeneralRe: Image processing Pin
OriginalGriff22-Jan-10 22:21
mveOriginalGriff22-Jan-10 22:21 
For the reasons I explained, candela is not really available. However, if it is a relative brightness you are after, (i.e. find-the-bright-bit of teh picture, rather than find-the-17-candela-bit) then the Color class can return the HSB/HLS brightness value for an RGB value, using Color.GetBrightness[^]
What you would have to do would be to get each individual pixel and check it's colour value as a brightness. This would probably be rather slow if you do it via GetPixel, however. You may want to start with GetPixel and then move to using BitmapData via an unsafe pointer to speed it up.
You can also replace the GetBrightness with your own routine, calculating the HLS Brightness yourself. If I remember correctly (and I could be wrong, it's been a LONG time since I used any of this) it is not that difficult - wiki can help here[^]

What are you using this for?

All those who believe in psycho kinesis, raise my hand.

GeneralRe: Image processing Pin
Member 333222822-Jan-10 22:53
Member 333222822-Jan-10 22:53 
GeneralRe: Image processing Pin
OriginalGriff23-Jan-10 0:46
mveOriginalGriff23-Jan-10 0:46 
GeneralRe: Image processing Pin
molesworth23-Jan-10 5:17
molesworth23-Jan-10 5:17 
Questionmarshalling linked list Pin
anishkannan22-Jan-10 17:59
anishkannan22-Jan-10 17:59 
AnswerRe: marshalling linked list Pin
dybs22-Jan-10 19:59
dybs22-Jan-10 19:59 
AnswerRe: marshalling linked list Pin
DaveyM6922-Jan-10 23:16
professionalDaveyM6922-Jan-10 23:16 
QuestionPopulating a Treeview from a dataset in c# Pin
tonyonlinux22-Jan-10 16:30
tonyonlinux22-Jan-10 16:30 
AnswerRe: Populating a Treeview from a dataset in c# Pin
Anurag Gandhi22-Jan-10 17:23
professionalAnurag Gandhi22-Jan-10 17:23 
GeneralRe: Populating a Treeview from a dataset in c# Pin
tonyonlinux22-Jan-10 18:00
tonyonlinux22-Jan-10 18:00 
GeneralRe: Populating a Treeview from a dataset in c# Pin
Anurag Gandhi23-Jan-10 7:43
professionalAnurag Gandhi23-Jan-10 7:43 
QuestionRe: Populating a Treeview from a dataset in c# Pin
tonyonlinux23-Jan-10 10:07
tonyonlinux23-Jan-10 10:07 
QuestionCreating ASP.NET server control with design-time capabilities Pin
[DK]KiloDunse22-Jan-10 11:04
[DK]KiloDunse22-Jan-10 11:04 
AnswerRe: Creating ASP.NET server control with design-time capabilities Pin
Not Active22-Jan-10 11:11
mentorNot Active22-Jan-10 11:11 
GeneralRe: Creating ASP.NET server control with design-time capabilities Pin
[DK]KiloDunse22-Jan-10 11:16
[DK]KiloDunse22-Jan-10 11:16 
GeneralRe: Creating ASP.NET server control with design-time capabilities Pin
Not Active22-Jan-10 11:28
mentorNot Active22-Jan-10 11:28 
AnswerRe: Creating ASP.NET server control with design-time capabilities Pin
[DK]KiloDunse22-Jan-10 15:54
[DK]KiloDunse22-Jan-10 15:54 
QuestionINotifyPropertyChanged, attributes and notification cascade Pin
N4sh22-Jan-10 9:15
N4sh22-Jan-10 9:15 

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.