Click here to Skip to main content
15,913,941 members
Home / Discussions / C#
   

C#

 
GeneralRe: Naming Question Pin
Pete O'Hanlon25-Jan-12 9:56
mvePete O'Hanlon25-Jan-12 9:56 
GeneralRe: Naming Question Pin
BobJanova25-Jan-12 8:11
BobJanova25-Jan-12 8:11 
GeneralRe: Naming Question Pin
PIEBALDconsult25-Jan-12 11:21
mvePIEBALDconsult25-Jan-12 11:21 
GeneralRe: Naming Question Pin
V.25-Jan-12 20:28
professionalV.25-Jan-12 20:28 
GeneralYou say filename I say file name. Or vice versa. Or neither. Pin
Keith Barrow25-Jan-12 23:40
professionalKeith Barrow25-Jan-12 23:40 
GeneralRe: You say filename I say file name. Or vice versa. Or neither. Pin
Kevin McFarlane27-Jan-12 1:35
Kevin McFarlane27-Jan-12 1:35 
AnswerRe: Naming Question Pin
Abhinav S26-Jan-12 20:23
Abhinav S26-Jan-12 20:23 
GeneralRe: Naming Question Pin
AmitGajjar26-Jan-12 22:26
professionalAmitGajjar26-Jan-12 22:26 
GeneralRe: Naming Question Pin
Subin Mavunkal27-Jan-12 0:27
Subin Mavunkal27-Jan-12 0:27 
GeneralRe: Naming Question Pin
Kevin McFarlane27-Jan-12 1:30
Kevin McFarlane27-Jan-12 1:30 
QuestionBitmap.Lockbytes AccessViolation Pin
Ylno25-Jan-12 4:24
Ylno25-Jan-12 4:24 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 6:17
sitebuilderLuc Pattyn25-Jan-12 6:17 
GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno25-Jan-12 11:22
Ylno25-Jan-12 11:22 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 12:39
sitebuilderLuc Pattyn25-Jan-12 12:39 
GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno25-Jan-12 18:21
Ylno25-Jan-12 18:21 
AnswerRe: Bitmap.Lockbytes AccessViolation Pin
Luc Pattyn25-Jan-12 23:04
sitebuilderLuc Pattyn25-Jan-12 23:04 
Hi again,

5. Now I see it.

6. Yes, sthe formats aren't documented well, and the RGB approach is justified.

7. The suggestion actually was and is to fill an array with RGB bytes, then use the constructor rather than your loops, should go faster. Drawback is you have to keep the array alive, or make another copy of the bitmap.

8. Having only one pointer or one index ("loop") typically is simpler and faster than having two indexes.

9. your code as shown wouldn't work, why are you storing bytes thrice, the last two bytes will throw an IndexOutOfBoundsException; storing everything thrice isn't useful if you have an explicit copy loop anyway, it only makes sense when using the IntPtr-based constructor.

10. I'd like to know what performance you are getting when it works, I recall you used to have 200msec (for 1000*1000?).

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

Fed up by FireFox memory leaks I switched to Opera and now CP doesn't perform its paste magic, so links will not be offered. Sorry.

GeneralRe: Bitmap.Lockbytes AccessViolation Pin
Ylno26-Jan-12 7:05
Ylno26-Jan-12 7:05 
Questioncontrols Pin
theanil25-Jan-12 3:40
theanil25-Jan-12 3:40 
AnswerRe: controls Pin
Pete O'Hanlon25-Jan-12 3:45
mvePete O'Hanlon25-Jan-12 3:45 
GeneralRe: controls Pin
theanil25-Jan-12 3:50
theanil25-Jan-12 3:50 
GeneralRe: controls Pin
Pete O'Hanlon25-Jan-12 3:57
mvePete O'Hanlon25-Jan-12 3:57 
GeneralRe: controls Pin
theanil25-Jan-12 4:01
theanil25-Jan-12 4:01 
AnswerRe: controls Pin
BillWoodruff27-Jan-12 7:20
professionalBillWoodruff27-Jan-12 7:20 
Questioncreate an application which generate table of the entered number.. Pin
rajiv kumar (abbi)24-Jan-12 23:01
rajiv kumar (abbi)24-Jan-12 23:01 
AnswerRe: create an application which generate table of the entered number.. Pin
Pete O'Hanlon24-Jan-12 23:19
mvePete O'Hanlon24-Jan-12 23:19 

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.