Click here to Skip to main content
15,914,447 members
Home / Discussions / C#
   

C#

 
GeneralRe: move image through a path Pin
waleed9910-Mar-07 21:13
waleed9910-Mar-07 21:13 
QuestionProblem with painting a form Pin
-raada-10-Mar-07 5:06
-raada-10-Mar-07 5:06 
AnswerRe: Problem with painting a form Pin
Christian Graus10-Mar-07 5:15
protectorChristian Graus10-Mar-07 5:15 
GeneralRe: Problem with painting a form Pin
-raada-10-Mar-07 7:49
-raada-10-Mar-07 7:49 
GeneralRe: Problem with painting a form Pin
Christian Graus10-Mar-07 8:10
protectorChristian Graus10-Mar-07 8:10 
AnswerRe: Problem with painting a form Pin
Luc Pattyn10-Mar-07 15:15
sitebuilderLuc Pattyn10-Mar-07 15:15 
GeneralRe: Problem with painting a form Pin
-raada-12-Mar-07 12:03
-raada-12-Mar-07 12:03 
GeneralRe: Problem with painting a form Pin
Luc Pattyn12-Mar-07 12:37
sitebuilderLuc Pattyn12-Mar-07 12:37 
Hi,

at first glance your code is OK except maybe for p.Color=...
I am not sure but this seems potentially the most expensive line in the for loop.

May I suggest you first retry with only one pen that does not change at all;
if perfo then is all right (or at least much better), make an array of pens
corresponding to description.Colors[] unless that array is really big.

Furthermore I am confused by the line
colorIndexStep = description.Colors.Length / sample.Length;
since it suggests there are more colors than samples (and with 256 samples, that would
be a lot of colors...)

And what is the "160 or 80 Hz frequency" you mentioned ?
is this the rate at which you hope to get the display updated ?? I dont think
Windows can do this at all (see my timers article !).

Best regards.

Luc Pattyn

[My Articles]

QuestionError Pin
shamsteady10-Mar-07 4:43
shamsteady10-Mar-07 4:43 
AnswerRe: Error Pin
Christian Graus10-Mar-07 4:48
protectorChristian Graus10-Mar-07 4:48 
GeneralRe: Error Pin
shamsteady10-Mar-07 5:00
shamsteady10-Mar-07 5:00 
GeneralRe: Error Pin
Christian Graus10-Mar-07 5:16
protectorChristian Graus10-Mar-07 5:16 
AnswerRe: Error Pin
M-Hall10-Mar-07 6:48
M-Hall10-Mar-07 6:48 
GeneralRe: Error Pin
shamsteady10-Mar-07 7:01
shamsteady10-Mar-07 7:01 
GeneralRe: Error Pin
Christian Graus10-Mar-07 7:27
protectorChristian Graus10-Mar-07 7:27 
QuestionDo you know any API that can get the name of DVD movie? [modified] Pin
Khoramdin10-Mar-07 4:30
Khoramdin10-Mar-07 4:30 
AnswerRe: Do you know any API that can get the name of DVD movie? Pin
Christian Graus10-Mar-07 5:17
protectorChristian Graus10-Mar-07 5:17 
QuestionRe: Do you know any API that can get the name of DVD movie? Pin
Khoramdin11-Mar-07 9:31
Khoramdin11-Mar-07 9:31 
QuestionNeed help creating thumbnails Pin
Mark F.10-Mar-07 4:15
Mark F.10-Mar-07 4:15 
AnswerRe: Need help creating thumbnails Pin
Christian Graus10-Mar-07 5:17
protectorChristian Graus10-Mar-07 5:17 
GeneralRe: Need help creating thumbnails [modified] Pin
Mark F.10-Mar-07 6:07
Mark F.10-Mar-07 6:07 
QuestionTrail of Tears... (i.e. Control Locations) [modified] Pin
new_phoenix10-Mar-07 2:47
new_phoenix10-Mar-07 2:47 
AnswerRe: Trail of Tears... (i.e. Control Locations) Pin
Guffa10-Mar-07 4:35
Guffa10-Mar-07 4:35 
GeneralRe: Trail of Tears... (i.e. Control Locations) [modified] Pin
new_phoenix10-Mar-07 7:05
new_phoenix10-Mar-07 7:05 
GeneralRe: Trail of Tears... (i.e. Control Locations) Pin
Guffa10-Mar-07 8:45
Guffa10-Mar-07 8:45 

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.