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

C#

 
AnswerRe: XNA Curve Class Pin
Judah Gabriel Himango9-Aug-07 15:35
sponsorJudah Gabriel Himango9-Aug-07 15:35 
GeneralRe: XNA Curve Class Pin
Mike Ellison10-Aug-07 6:16
Mike Ellison10-Aug-07 6:16 
GeneralRe: XNA Curve Class Pin
Judah Gabriel Himango10-Aug-07 6:25
sponsorJudah Gabriel Himango10-Aug-07 6:25 
GeneralRe: XNA Curve Class Pin
Mike Ellison10-Aug-07 6:34
Mike Ellison10-Aug-07 6:34 
GeneralRe: XNA Curve Class Pin
Judah Gabriel Himango10-Aug-07 6:48
sponsorJudah Gabriel Himango10-Aug-07 6:48 
GeneralRe: XNA Curve Class Pin
Mike Ellison10-Aug-07 14:17
Mike Ellison10-Aug-07 14:17 
QuestionHow to resolve this FxCop warning? Pin
Scott Dorman9-Aug-07 12:32
professionalScott Dorman9-Aug-07 12:32 
AnswerRe: How to resolve this FxCop warning? Pin
Andrew Rissing9-Aug-07 12:58
Andrew Rissing9-Aug-07 12:58 
GeneralRe: How to resolve this FxCop warning? Pin
Scott Dorman9-Aug-07 13:04
professionalScott Dorman9-Aug-07 13:04 
AnswerRe: How to resolve this FxCop warning? Pin
Guffa9-Aug-07 14:01
Guffa9-Aug-07 14:01 
GeneralRe: How to resolve this FxCop warning? Pin
Scott Dorman9-Aug-07 17:16
professionalScott Dorman9-Aug-07 17:16 
AnswerRe: How to resolve this FxCop warning? Pin
Judah Gabriel Himango9-Aug-07 15:31
sponsorJudah Gabriel Himango9-Aug-07 15:31 
GeneralRe: How to resolve this FxCop warning? Pin
Scott Dorman9-Aug-07 17:20
professionalScott Dorman9-Aug-07 17:20 
Questionchanging color of a edited row of a datagrid Pin
Nosnibor9-Aug-07 11:12
Nosnibor9-Aug-07 11:12 
AnswerRe: changing color of a edited row of a datagrid Pin
Nouman Bhatti9-Aug-07 20:06
Nouman Bhatti9-Aug-07 20:06 
AnswerRe: changing color of a edited row of a datagrid Pin
Nouman Bhatti9-Aug-07 20:08
Nouman Bhatti9-Aug-07 20:08 
QuestionDetermine the amount of red in an image Pin
newb2vb9-Aug-07 10:28
newb2vb9-Aug-07 10:28 
AnswerRe: Determine the amount of red in an image Pin
Christian Graus9-Aug-07 11:20
protectorChristian Graus9-Aug-07 11:20 
AnswerRe: Determine the amount of red in an image [modified] Pin
Luc Pattyn9-Aug-07 11:49
sitebuilderLuc Pattyn9-Aug-07 11:49 
Additionally, don't do for (int w = 0; w < bmp.Width; w++), instead do:

int wid=bmp.Width;
for (int w=0; w<wid; w++)


This avoids bmp.Width to be calculated for every pixel, and results in a significant
speed gain (that is once you did everything else correctly, with lockbits, unsafe,
a pointer, etc. it will make a noticable difference in debug mode, not sure about
release mode).

Smile | :)


-- modified at 18:11 Thursday 9th August, 2007: added debug/release nuance.

Luc Pattyn [Forum Guidelines] [My Articles]


this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google


AnswerRe: Determine the amount of red in an image Pin
c0ax_lx10-Aug-07 4:29
c0ax_lx10-Aug-07 4:29 
QuestionClipboard copy and a listview Pin
Piet Pelle9-Aug-07 9:31
Piet Pelle9-Aug-07 9:31 
AnswerRe: Clipboard copy and a listview Pin
Judah Gabriel Himango9-Aug-07 9:43
sponsorJudah Gabriel Himango9-Aug-07 9:43 
GeneralRe: Clipboard copy and a listview Pin
Piet Pelle9-Aug-07 9:54
Piet Pelle9-Aug-07 9:54 
GeneralRe: Clipboard copy and a listview Pin
Judah Gabriel Himango9-Aug-07 9:57
sponsorJudah Gabriel Himango9-Aug-07 9:57 
GeneralRe: Clipboard copy and a listview Pin
Piet Pelle9-Aug-07 10:14
Piet Pelle9-Aug-07 10:14 

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.