Click here to Skip to main content
14,448,728 members
   

C#

 
QuestionFocus in Dialog in Setup Project Pin
Sifar - 021-Jul-08 22:09
MemberSifar - 021-Jul-08 22:09 
QuestionUsing Unsafe code Pin
sumit703421-Jul-08 21:53
Membersumit703421-Jul-08 21:53 
AnswerRe: Using Unsafe code Pin
stancrm21-Jul-08 22:14
Memberstancrm21-Jul-08 22:14 
GeneralRe: Using Unsafe code Pin
sumit703421-Jul-08 22:36
Membersumit703421-Jul-08 22:36 
QuestionBitmap to ByteArray Conversion...? Pin
DeepOceans21-Jul-08 20:59
MemberDeepOceans21-Jul-08 20:59 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
stancrm21-Jul-08 22:16
Memberstancrm21-Jul-08 22:16 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
Guffa22-Jul-08 0:50
MemberGuffa22-Jul-08 0:50 
AnswerRe: Bitmap to ByteArray Conversion...? Pin
Anthony Mushrow22-Jul-08 1:35
professionalAnthony Mushrow22-Jul-08 1:35 
You should find out what problem using a MemoryStream is causing, because there shouldn't be any.
And i thought that first reply was a good way to get it into a byte array without using a stream in memory (which would probably be the best solution)

Apart from that you could write the data yourself, reading the colour of each pixel and then writing this data into an array - of course you'd need to check the bit-depth of the image and make sure you write the data correctly, plus you'd probably want to write the bitmap header as well... it's a fair bit of effort.

My current favourite word is: I'm starting to run out of fav. words!
-SK Genius

Game Programming articles start -here[^]-

AnswerRe: Bitmap to ByteArray Conversion...? Pin
Jacek Gajek22-Jul-08 1:40
MemberJacek Gajek22-Jul-08 1:40 
Questionpop server connection Pin
kathiresanmoorthy21-Jul-08 20:35
Memberkathiresanmoorthy21-Jul-08 20:35 
RantRe: pop server connection Pin
Guffa22-Jul-08 0:52
MemberGuffa22-Jul-08 0:52 
Questionretreving the gridview row in color from sqlserver using boundfields Pin
santosh04221-Jul-08 19:53
Membersantosh04221-Jul-08 19:53 
AnswerRe: retreving the gridview row in color from sqlserver using boundfields Pin
Srishti Mathur21-Jul-08 20:48
MemberSrishti Mathur21-Jul-08 20:48 
Questionhow to get domain part from URL Pin
George_George21-Jul-08 18:22
MemberGeorge_George21-Jul-08 18:22 
AnswerRe: how to get domain part from URL Pin
Bert delaVega21-Jul-08 18:40
MemberBert delaVega21-Jul-08 18:40 
GeneralRe: how to get domain part from URL Pin
George_George21-Jul-08 19:14
MemberGeorge_George21-Jul-08 19:14 
AnswerRe: how to get domain part from URL Pin
N a v a n e e t h21-Jul-08 18:59
MemberN a v a n e e t h21-Jul-08 18:59 
GeneralRe: how to get domain part from URL Pin
George_George21-Jul-08 20:16
MemberGeorge_George21-Jul-08 20:16 
QuestionHow to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 18:11
MemberGeorge_George21-Jul-08 18:11 
AnswerRe: How to retrieve top 10 elements in a Dictionary Pin
N a v a n e e t h21-Jul-08 19:03
MemberN a v a n e e t h21-Jul-08 19:03 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 20:21
MemberGeorge_George21-Jul-08 20:21 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
Guffa21-Jul-08 22:19
MemberGuffa21-Jul-08 22:19 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George21-Jul-08 22:34
MemberGeorge_George21-Jul-08 22:34 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
Guffa22-Jul-08 0:54
MemberGuffa22-Jul-08 0:54 
GeneralRe: How to retrieve top 10 elements in a Dictionary Pin
George_George22-Jul-08 1:09
MemberGeorge_George22-Jul-08 1:09 

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.