- #1
madmike159
Gold Member
- 371
- 0
I am getting a 640x480 bitmap image of an Xbox Kinect, and I have also made a separate programs which can send and receive images over TCP.
Since bimaps are uncompressed I would like to convert the image to a JPEG to save bandwith. The only examples I have seen of this were for saving images.
The code I have seen was something like this.
I want to be able to get an image from the Kinect (I have code for this bit), then that the Image object and save it to another Image but as a JPEG.
Anyone got any ideas on how to do this?
Since bimaps are uncompressed I would like to convert the image to a JPEG to save bandwith. The only examples I have seen of this were for saving images.
The code I have seen was something like this.
Code:
Image bitmapImage = openfile(path); //Gets image from a file path
Image jpegImage;
jpegImage.save(path, jpg); //Saves a jpeg to the path
I want to be able to get an image from the Kinect (I have code for this bit), then that the Image object and save it to another Image but as a JPEG.
Anyone got any ideas on how to do this?