Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: components and verbs Pin
0x3c06-Mar-09 2:13
0x3c06-Mar-09 2:13 
GeneralRe: components and verbs Pin
damichab6-Mar-09 12:40
damichab6-Mar-09 12:40 
Questionhow to open a form when click on custom property item in propertygridview. Pin
dilipmca045-Mar-09 16:33
dilipmca045-Mar-09 16:33 
AnswerRe: how to open a form when click on custom property item in propertygridview. Pin
Dragonfly_Lee5-Mar-09 17:55
Dragonfly_Lee5-Mar-09 17:55 
Questionhow to open a form when click on custom property item in propertygridview Pin
dilipmca045-Mar-09 16:29
dilipmca045-Mar-09 16:29 
Questionnested lists problem Pin
VitroBlue5-Mar-09 15:42
VitroBlue5-Mar-09 15:42 
AnswerRe: nested lists problem Pin
Christian Graus5-Mar-09 15:55
protectorChristian Graus5-Mar-09 15:55 
AnswerRe: nested lists problem Pin
Luc Pattyn5-Mar-09 23:51
sitebuilderLuc Pattyn5-Mar-09 23:51 
Hi,

if PixelData is a class representing one pixel, are you aware of the fact that this will lead to:
- a huge waste of memory: an object typically has 32 bytes of overhead, so say you are holding 4 bytes of useful information, it will take 36 bytes of memory
- a very slow execution: just enumerating the pixels will take forever, due to a number of indirections in your setup.

IMO the normal approach to this would be:
- either store image information in arrays, say red[], green[], blue[] for the color components of all pixels in the image, or at least in the scanline;
- or use existing classes, such as Bitmap (which internally stores pixel data in an array of structs, each struct holding one byte or red, green, blue, alpha). An array of struct seems most appropriate, since now you can use pointers and don't use unnecessary extra indirections.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


modified on Sunday, June 12, 2011 9:09 AM

Questionexporting to Excel Pin
avvaru.murali5-Mar-09 15:18
avvaru.murali5-Mar-09 15:18 
AnswerRe: exporting to Excel Pin
Christian Graus5-Mar-09 15:52
protectorChristian Graus5-Mar-09 15:52 
AnswerRe: exporting to Excel Pin
Ramkithepower5-Mar-09 19:24
Ramkithepower5-Mar-09 19:24 
Questionneed help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 15:04
YiXiang_895-Mar-09 15:04 
AnswerRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
_Maxxx_5-Mar-09 15:12
professional_Maxxx_5-Mar-09 15:12 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 15:19
YiXiang_895-Mar-09 15:19 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
Christian Graus5-Mar-09 15:56
protectorChristian Graus5-Mar-09 15:56 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 16:13
YiXiang_895-Mar-09 16:13 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
_Maxxx_5-Mar-09 17:41
professional_Maxxx_5-Mar-09 17:41 
GeneralRe: need help..... How to link the current website that i am browsing to the textbox ? Pin
YiXiang_895-Mar-09 18:05
YiXiang_895-Mar-09 18:05 
QuestionHelp on CancelButton property? Pin
Wes Jones5-Mar-09 14:41
Wes Jones5-Mar-09 14:41 
AnswerRe: Help on CancelButton property? [modified] Pin
Xmen Real 5-Mar-09 15:04
professional Xmen Real 5-Mar-09 15:04 
GeneralRe: Help on CancelButton property? Pin
Wes Jones5-Mar-09 16:01
Wes Jones5-Mar-09 16:01 
AnswerRe: Help on CancelButton property? Pin
_Maxxx_5-Mar-09 15:07
professional_Maxxx_5-Mar-09 15:07 
GeneralRe: Help on CancelButton property? Pin
Wes Jones5-Mar-09 16:01
Wes Jones5-Mar-09 16:01 
QuestionFile Summary Info??? Pin
S K Y5-Mar-09 13:44
S K Y5-Mar-09 13:44 
AnswerRe: File Summary Info??? Pin
Yusuf5-Mar-09 14:46
Yusuf5-Mar-09 14:46 

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.