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

C#

 
AnswerRe: hi Pin
lawrenceinba26-Jan-09 19:22
lawrenceinba26-Jan-09 19:22 
GeneralRe: hi Pin
Manas Bhardwaj26-Jan-09 21:07
professionalManas Bhardwaj26-Jan-09 21:07 
AnswerRe: hi Pin
Guffa26-Jan-09 19:42
Guffa26-Jan-09 19:42 
Questioncreateing sql file Pin
jugal_piet@indiatimes.com26-Jan-09 19:01
jugal_piet@indiatimes.com26-Jan-09 19:01 
AnswerRe: createing sql file Pin
Guffa26-Jan-09 19:45
Guffa26-Jan-09 19:45 
QuestionBitmap Image Processing Using C# Pin
karthick sampangi26-Jan-09 18:47
karthick sampangi26-Jan-09 18:47 
AnswerRe: Bitmap Image Processing Using C# Pin
PandemoniumPasha26-Jan-09 19:42
PandemoniumPasha26-Jan-09 19:42 
AnswerRe: Bitmap Image Processing Using C# Pin
DaveyM6927-Jan-09 0:17
professionalDaveyM6927-Jan-09 0:17 
The first thing you need to do is get a byte[] (byte array) of the image. You can use BitmapData from the LockBits as suggested before, or possibly save the bitmap to a MemoryStream and get the byte array from the stream.

Getting the binary display is then trivial, just use Convert.ToString on each byte:
foreach (byte index in byteArray)
{
    Console.WriteLine(Convert.ToString(index, 2).PadLeft(8, '0'));
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)

Questionhow to know when mouse is clicked on gridview's column header. Pin
s_aslam9826-Jan-09 18:17
s_aslam9826-Jan-09 18:17 
AnswerRe: how to know when mouse is clicked on gridview's column header. Pin
Santhosh N27-Jan-09 23:00
Santhosh N27-Jan-09 23:00 
QuestionGarbage collection Pin
anishkannan26-Jan-09 17:57
anishkannan26-Jan-09 17:57 
AnswerRe: Garbage collection Pin
Bharat Jain26-Jan-09 20:18
Bharat Jain26-Jan-09 20:18 
GeneralRe: Garbage collection Pin
anishkannan26-Jan-09 20:40
anishkannan26-Jan-09 20:40 
AnswerRe: Garbage collection Pin
Vikram A Punathambekar26-Jan-09 21:44
Vikram A Punathambekar26-Jan-09 21:44 
GeneralRe: Garbage collection Pin
Guffa27-Jan-09 13:31
Guffa27-Jan-09 13:31 
GeneralRe: Garbage collection Pin
Vikram A Punathambekar28-Jan-09 3:12
Vikram A Punathambekar28-Jan-09 3:12 
AnswerRe: Garbage collection Pin
Guffa27-Jan-09 13:41
Guffa27-Jan-09 13:41 
QuestionCreating XML using DataSet.WriteXml, including columns containing NULL Pin
K V Sekhar26-Jan-09 17:24
K V Sekhar26-Jan-09 17:24 
AnswerRe: Creating XML using DataSet.WriteXml, including columns containing NULL Pin
PIEBALDconsult26-Jan-09 18:21
mvePIEBALDconsult26-Jan-09 18:21 
QuestionExtract data from image Pin
Member 314727926-Jan-09 16:35
Member 314727926-Jan-09 16:35 
AnswerRe: Extract data from image Pin
Vikram A Punathambekar26-Jan-09 16:40
Vikram A Punathambekar26-Jan-09 16:40 
AnswerRe: Extract data from image Pin
vaghelabhavesh26-Jan-09 16:42
vaghelabhavesh26-Jan-09 16:42 
GeneralRe: Extract data from image Pin
Member 314727926-Jan-09 18:14
Member 314727926-Jan-09 18:14 
GeneralRe: Extract data from image Pin
benjymous26-Jan-09 23:36
benjymous26-Jan-09 23:36 
QuestionChange background color of an image Pin
Xmen Real 26-Jan-09 13:52
professional Xmen Real 26-Jan-09 13:52 

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.