|
Hello every body ...
I want to take a pictures using a linksprite jpeg camera and send the data to the serial port ...
my question is >> how I can store the incoming bytes in a memory stream and then convert the stored data to a jpeg image >> )
CAN ANY ONE HELP ME PLZ ...
|
|
|
|
|
Input
System.IO.MemoryStream which has a Write() method. That is how you put it into a Memory Stream.
Kushina wrote: then convert the stored data to a jpeg image
Not sure what that means but since the camera takes jpeg images then the incoming bytes are already a jpeg.
HOWEVER, if what you are really asking is how can you write an application that interfaces with a camera then the steps are:
1. Learn how USB devices work
2. Learn how to interface to USB devices in C#.
3. Learn how the interface to the specific camera works (with 1/2)
4. Write C# code to access the camera using 1/2/3.
5. Do something with the images. Presumably store them as files. Then learn more about C# System.io classes.
Naturally the above presumes you know some C# in the first place. If not then you must also learn the basics of C#.
|
|
|
|
|
Thank you for your kind reply ,response and your help .
It was very useful for me , but I'm still a bit confused and it could be because I did not point out clearly the problem .
I'm a beginner in c# but I have learned some basics in this language .
We have used link sprite jpeg camera in our project . our doctor has divided the project into a group of tasks and we have to learned
to implement it step by step .
This camera has a manual which contains all commands to communicate with the camera
(http://www.mediafire.com/view/?ec79xt02620zil5[^])
we were able till now to send the reset command and get back the return msg .
now we want the camera to take a pictures which has a dimensions (160*120);my task is to get the bytes that represent the picture and how to save it in memory stream to be processed later on . after that how this picture can be displayed as a jpeg image or any other extenssion.
|
|
|
|