Click here to Skip to main content
15,881,600 members
Home / Discussions / C#
   

C#

 
GeneralRe: tlbimp marshaling problems. Pin
Tristan Rhodes31-Dec-03 6:10
Tristan Rhodes31-Dec-03 6:10 
GeneralRe: tlbimp marshaling problems. Pin
Stephane Rodriguez.31-Dec-03 22:11
Stephane Rodriguez.31-Dec-03 22:11 
GeneralDefault Button for a Form Pin
Anonymous30-Dec-03 21:48
Anonymous30-Dec-03 21:48 
GeneralRe: Default Button for a Form Pin
Mazdak30-Dec-03 21:53
Mazdak30-Dec-03 21:53 
Generalmaking String Bitmap Pin
azusakt30-Dec-03 20:25
azusakt30-Dec-03 20:25 
GeneralRe: making String Bitmap(Modified) Pin
Mazdak30-Dec-03 22:00
Mazdak30-Dec-03 22:00 
GeneralRe: making String Bitmap(Modified) Pin
azusakt30-Dec-03 22:40
azusakt30-Dec-03 22:40 
GeneralRe: making String Bitmap(Modified) Pin
Mazdak30-Dec-03 23:13
Mazdak30-Dec-03 23:13 
azusakt wrote:
Do you mean I can Use Bitmap.GetPixel() to get a buffer?

No,this one will give you colors.For getting bufer you can use this one:

System.IO.FileStream stream = new System.IO.FileStream("somefile.bmp",	System.IO.FileMode.Open, System.IO.FileAccess.Read);
byte[] buffer = new byte[stream.Length];
stream.Read(buffer, 0, (int)stream.Length);
stream.Close();


Now buffer contain data of bitmap. You can put in a string like this.

string str="";
for(int i=0;i < buffer.Length;i++)
   str += buffer[i].ToString()+ " ";


Mazy

No sig. available now.

GeneralRe: making String Bitmap Pin
Heath Stewart31-Dec-03 4:26
protectorHeath Stewart31-Dec-03 4:26 
GeneralRe: making String Bitmap Pin
azusakt7-Jan-04 15:50
azusakt7-Jan-04 15:50 
GeneralRe: making String Bitmap Pin
Heath Stewart7-Jan-04 18:09
protectorHeath Stewart7-Jan-04 18:09 
GeneralProblem with FolderBrowserDialog Class Pin
ta10030-Dec-03 14:56
ta10030-Dec-03 14:56 
GeneralRe: Problem with FolderBrowserDialog Class Pin
Heath Stewart31-Dec-03 4:09
protectorHeath Stewart31-Dec-03 4:09 
GeneralRe: Problem with FolderBrowserDialog Class Pin
ta1001-Jan-04 6:31
ta1001-Jan-04 6:31 
GeneralPrinting Form Pin
IntegraSoft30-Dec-03 13:44
IntegraSoft30-Dec-03 13:44 
GeneralRe: Printing Form Pin
Mazdak30-Dec-03 19:41
Mazdak30-Dec-03 19:41 
GeneralRe: Printing Form Pin
Heath Stewart30-Dec-03 19:42
protectorHeath Stewart30-Dec-03 19:42 
QuestionDrawing panels in ownerdraw listbox? Pin
pwinant30-Dec-03 13:31
pwinant30-Dec-03 13:31 
GeneralPublic/Private Keys Pin
Guinness4Strength30-Dec-03 11:15
Guinness4Strength30-Dec-03 11:15 
GeneralExecuting code for more than 1 statements Pin
Melanius30-Dec-03 10:42
Melanius30-Dec-03 10:42 
GeneralRe: Executing code for more than 1 statements Pin
Colin Angus Mackay30-Dec-03 10:54
Colin Angus Mackay30-Dec-03 10:54 
GeneralRe: Executing code for more than 1 statements Pin
Heath Stewart30-Dec-03 11:27
protectorHeath Stewart30-Dec-03 11:27 
GeneralRe: Executing code for more than 1 statements Pin
Melanius30-Dec-03 11:30
Melanius30-Dec-03 11:30 
GeneralRe: Executing code for more than 1 statements Pin
Melanius31-Dec-03 6:46
Melanius31-Dec-03 6:46 
GeneralGuid in DataTable Pin
Mazdak30-Dec-03 9:30
Mazdak30-Dec-03 9:30 

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.