Click here to Skip to main content
15,887,946 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get a particular number of bytes or a null terminated string from serial port? Pin
CelestialCoder13-Aug-08 17:36
CelestialCoder13-Aug-08 17:36 
QuestionC# windows application deployment error Pin
vishnukamath9-Aug-08 3:40
vishnukamath9-Aug-08 3:40 
QuestionCounting number of characters Pin
Zafar Sultan9-Aug-08 3:35
Zafar Sultan9-Aug-08 3:35 
AnswerRe: Counting number of characters Pin
User 66589-Aug-08 4:43
User 66589-Aug-08 4:43 
QuestionMobile programming Pin
ali zaidi9-Aug-08 3:25
ali zaidi9-Aug-08 3:25 
AnswerRe: Mobile programming Pin
mr.mohsen9-Aug-08 6:09
mr.mohsen9-Aug-08 6:09 
QuestionOnchange event is not triggering events on text elements in c# Pin
Nupur2069-Aug-08 3:03
Nupur2069-Aug-08 3:03 
QuestionHow can I copy a block of memory? Pin
CopperCircle9-Aug-08 2:22
CopperCircle9-Aug-08 2:22 
Hi, I am trying to use the third party VideoCog componet with C# and I need to copy a image frame? Videocog drops the frame into an rgb array in memory and I can then fast process the pixels using pointers.
How can I create another copy of the frame from memory so that I can also access that via another pointer?

Thanks...


 1.
    private void videoCogControl1_FrameReady(double SampleTime, IntPtr pBuffer,
 2.
                                             int BufferSize, int Width, int Height)
 3.
         {
 4.
              unsafe
 5.
              {
 6.
                   byte* p = (byte*)(void*)pBuffer;
 7.
                   int nWidth = Width * 3;
 8.
                   for (int y = 0; y < Height; y++)
 9.
                   {
10.
                        for (int x = 0; x < nWidth; x++)
11.
                        {
12.
                            p[0] = (byte)(255 - p[0]);
13.
                            p++;
14.
                        }
15.
                   }
16.
               }
17.
         }

AnswerRe: How can I copy a block of memory? Pin
User 66589-Aug-08 2:29
User 66589-Aug-08 2:29 
GeneralRe: How can I copy a block of memory? Pin
CopperCircle9-Aug-08 2:39
CopperCircle9-Aug-08 2:39 
GeneralRe: How can I copy a block of memory? Pin
Guffa9-Aug-08 7:53
Guffa9-Aug-08 7:53 
GeneralRe: How can I copy a block of memory? Pin
CopperCircle9-Aug-08 11:47
CopperCircle9-Aug-08 11:47 
AnswerRe: How can I copy a block of memory? Pin
Guffa9-Aug-08 22:17
Guffa9-Aug-08 22:17 
GeneralRe: How can I copy a block of memory? Pin
CopperCircle10-Aug-08 0:21
CopperCircle10-Aug-08 0:21 
AnswerRe: How can I copy a block of memory? Pin
#realJSOP10-Aug-08 1:19
mve#realJSOP10-Aug-08 1:19 
AnswerRe: How can I copy a block of memory? Pin
CopperCircle10-Aug-08 2:32
CopperCircle10-Aug-08 2:32 
Questionsend mail using C# Pin
sobhaniir9-Aug-08 0:41
sobhaniir9-Aug-08 0:41 
AnswerRe: send mail using C# PinPopular
Guffa9-Aug-08 0:50
Guffa9-Aug-08 0:50 
RantRe: send mail using C# Pin
User 66589-Aug-08 1:18
User 66589-Aug-08 1:18 
GeneralRe: send mail using C# Pin
Paul Conrad9-Aug-08 6:15
professionalPaul Conrad9-Aug-08 6:15 
GeneralRe: send mail using C# Pin
User 66589-Aug-08 8:24
User 66589-Aug-08 8:24 
GeneralRe: send mail using C# Pin
Paul Conrad9-Aug-08 8:49
professionalPaul Conrad9-Aug-08 8:49 
GeneralRe: send mail using C# Pin
Guffa9-Aug-08 10:10
Guffa9-Aug-08 10:10 
AnswerRe: send mail using C# Pin
Wendelius9-Aug-08 2:35
mentorWendelius9-Aug-08 2:35 
AnswerRe: send mail using C# Pin
mr.mohsen9-Aug-08 6:19
mr.mohsen9-Aug-08 6: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.