Click here to Skip to main content
15,921,351 members
Home / Discussions / C#
   

C#

 
GeneralRe: collection class Pin
needhelpinnet3-Mar-07 12:28
needhelpinnet3-Mar-07 12:28 
QuestionWord or Excel , get opened file name Pin
Muhammad Nauman Yousuf3-Mar-07 8:00
Muhammad Nauman Yousuf3-Mar-07 8:00 
QuestionSystem.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 7:25
KainPlan3-Mar-07 7:25 
AnswerRe: System.Drawing.Bitmap byte[] Pin
Wayne Phipps3-Mar-07 8:03
Wayne Phipps3-Mar-07 8:03 
GeneralRe: System.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 8:26
KainPlan3-Mar-07 8:26 
AnswerRe: System.Drawing.Bitmap byte[] Pin
.armin3-Mar-07 11:16
.armin3-Mar-07 11:16 
GeneralRe: System.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 14:33
KainPlan3-Mar-07 14:33 
GeneralRe: System.Drawing.Bitmap byte[] Pin
KainPlan3-Mar-07 19:37
KainPlan3-Mar-07 19:37 
AHHHHH!!!!!! I GOT IT Smile | :)

//Preform bit reading of bmp.
Draw.Rectangle rect = new Draw.Rectangle(0, 0, bmp.Width, bmp.Height);
System.Drawing.Imaging.BitmapData bmpData =
bmp.LockBits(rect, System.Drawing.Imaging.ImageLockMode.ReadWrite,
bmp.PixelFormat);
IntPtr ptr = bmpData.Scan0;
int bytes = bmp.Width * bmp.Height * 4;
byte[] rgbValues = new byte[bytes];
//Marshal copy the bits at ptr to rgbValues at 0 for a size of bytes.
System.Runtime.
InteropServices.Marshal.Copy(ptr, rgbValues, 0, bytes);
bytes = bmp.Width * bmp.Height * 1;
byte[] bValues = new byte[bytes];
int i = 0;
//Convert into a Displayable kind.
while (i != bytes)
{
bValues[i] = rgbValues[i * 4];
i++;
}


lgbmp.pixels = bValues;

a little bit worse but it works with no timing issues!!!
Question How to force an IE window to be opened on link click from axWebBrowser Pin
vedmack3-Mar-07 6:21
vedmack3-Mar-07 6:21 
QuestionManaged & Unmanaged objects classification... Pin
Shy Agam3-Mar-07 5:36
Shy Agam3-Mar-07 5:36 
AnswerRe: Managed & Unmanaged objects classification... Pin
Guffa3-Mar-07 6:00
Guffa3-Mar-07 6:00 
GeneralRe: Managed & Unmanaged objects classification... Pin
Shy Agam3-Mar-07 6:03
Shy Agam3-Mar-07 6:03 
GeneralRe: Managed & Unmanaged objects classification... Pin
S. Senthil Kumar3-Mar-07 7:32
S. Senthil Kumar3-Mar-07 7:32 
GeneralRe: Managed & Unmanaged objects classification... Pin
Guffa3-Mar-07 7:52
Guffa3-Mar-07 7:52 
QuestionStatistics on C# (.net) usage Pin
asm1233-Mar-07 4:02
asm1233-Mar-07 4:02 
QuestionPorting C++ to C#: Types Pin
Ri Qen-Sin3-Mar-07 3:24
Ri Qen-Sin3-Mar-07 3:24 
AnswerRe: Porting C++ to C#: Types Pin
Parwej Ahamad3-Mar-07 3:45
professionalParwej Ahamad3-Mar-07 3:45 
GeneralRe: Porting C++ to C#: Types Pin
Ri Qen-Sin3-Mar-07 3:57
Ri Qen-Sin3-Mar-07 3:57 
GeneralRe: Porting C++ to C#: Types Pin
Parwej Ahamad3-Mar-07 7:58
professionalParwej Ahamad3-Mar-07 7:58 
AnswerRe: Porting C++ to C#: Types Pin
Guffa3-Mar-07 4:50
Guffa3-Mar-07 4:50 
GeneralRe: Porting C++ to C#: Types Pin
Luc Pattyn3-Mar-07 12:18
sitebuilderLuc Pattyn3-Mar-07 12:18 
QuestionCircular Control Reference -- A control cannot be parented to iteself. Pin
new_phoenix3-Mar-07 2:37
new_phoenix3-Mar-07 2:37 
QuestionAsynchronous Vs Multithreaded Client-Server ? [modified] Pin
zinc_z3-Mar-07 2:31
zinc_z3-Mar-07 2:31 
AnswerRe: Asynchronous Vs Multithreaded Client-Server ? Pin
Parwej Ahamad3-Mar-07 3:49
professionalParwej Ahamad3-Mar-07 3:49 
GeneralRe: Asynchronous Vs Multithreaded Client-Server ? Pin
zinc_z3-Mar-07 5:59
zinc_z3-Mar-07 5:59 

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.