Click here to Skip to main content
15,867,921 members
Home / Discussions / C#
   

C#

 
QuestionUpdating/changing Items in a ListBox with a TextBox Pin
stephan.smolek31-Jul-07 9:49
stephan.smolek31-Jul-07 9:49 
AnswerRe: Updating/changing Items in a ListBox with a TextBox Pin
bit_cmdr31-Jul-07 11:00
bit_cmdr31-Jul-07 11:00 
GeneralRe: Updating/changing Items in a ListBox with a TextBox Pin
stephan.smolek31-Jul-07 20:44
stephan.smolek31-Jul-07 20:44 
QuestionAverage image brightness Pin
newb2vb31-Jul-07 9:41
newb2vb31-Jul-07 9:41 
AnswerRe: Average image brightness Pin
Christian Graus31-Jul-07 11:39
protectorChristian Graus31-Jul-07 11:39 
GeneralRe: Average image brightness Pin
newb2vb31-Jul-07 12:15
newb2vb31-Jul-07 12:15 
GeneralRe: Average image brightness Pin
Christian Graus31-Jul-07 17:32
protectorChristian Graus31-Jul-07 17:32 
GeneralRe: Average image brightness Pin
newb2vb31-Jul-07 14:19
newb2vb31-Jul-07 14:19 
Christian,

This simple problem is kicking my butt!!!! I figured out how to do all of the math and sum everything up then divide at the end and I got the code working!

However, the getpixel method as we already knew it would be, was very slow to give me the message box at the end with the one average number.

Therefore, I agree that I should be locking the image and I have now done that and I can get my x and y loops working going through the image no problem. However, when the unsafe/locked image approach is used, you can no longer use pixel.getbrightness like I could do using the other message (error says that image has already been locked.

So the last question I have is, if I have locked my image and can iterate through each pixel using the unsafe/locked method, how do I read the brightness of each pixel?

Thanks again!

Mike
GeneralRe: Average image brightness Pin
Christian Graus31-Jul-07 17:33
protectorChristian Graus31-Jul-07 17:33 
AnswerRe: Average image brightness Pin
Luc Pattyn31-Jul-07 13:53
sitebuilderLuc Pattyn31-Jul-07 13:53 
QuestionC# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 7:11
professionalJustincc31-Jul-07 7:11 
AnswerRe: C# Multithreading, GUI hangs while loading Pin
Luc Pattyn31-Jul-07 7:22
sitebuilderLuc Pattyn31-Jul-07 7:22 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 7:29
professionalJustincc31-Jul-07 7:29 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 7:38
PhilDanger31-Jul-07 7:38 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:05
professionalJustincc31-Jul-07 10:05 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 10:21
PhilDanger31-Jul-07 10:21 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:40
professionalJustincc31-Jul-07 10:40 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:57
professionalJustincc31-Jul-07 10:57 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Judah Gabriel Himango31-Jul-07 13:15
sponsorJudah Gabriel Himango31-Jul-07 13:15 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Luc Pattyn31-Jul-07 7:53
sitebuilderLuc Pattyn31-Jul-07 7:53 
AnswerRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 7:30
PhilDanger31-Jul-07 7:30 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 7:36
professionalJustincc31-Jul-07 7:36 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
PhilDanger31-Jul-07 7:39
PhilDanger31-Jul-07 7:39 
AnswerRe: C# Multithreading, GUI hangs while loading Pin
Judah Gabriel Himango31-Jul-07 10:02
sponsorJudah Gabriel Himango31-Jul-07 10:02 
GeneralRe: C# Multithreading, GUI hangs while loading Pin
Justincc31-Jul-07 10:20
professionalJustincc31-Jul-07 10:20 

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.