HBITMAP to Jpeg data stream?
-
i want to get jpeg data stream from a valid HBITMAP and transfer it through network. I can do this by first creating a jpg file and then reading the data from the file and at last sending it out,but it is not effective,so is there a more effective solution?(i don't want to get into the complexity of jpeglib) (English is not my native language,sorry for my bad English)
-
i want to get jpeg data stream from a valid HBITMAP and transfer it through network. I can do this by first creating a jpg file and then reading the data from the file and at last sending it out,but it is not effective,so is there a more effective solution?(i don't want to get into the complexity of jpeglib) (English is not my native language,sorry for my bad English)
Using the Intel Jpeg Library (IJL), you can convert to jpeg directly in-memory, allowing you to convert from DIB to jpeg and write the jpeg out to whatever medium you wish (file, socket, pipe, etc.). onwards and upwards...
-
Using the Intel Jpeg Library (IJL), you can convert to jpeg directly in-memory, allowing you to convert from DIB to jpeg and write the jpeg out to whatever medium you wish (file, socket, pipe, etc.). onwards and upwards...
-
Yes, that is correct. You will need to convert to a 24 bit jpeg. There is a really nice class called CDibImage (on CP, I think or available at http://www.naughter.com/[^]) by P.J. Naughter that makes these types of things really easy. onwards and upwards...
-
Yes, that is correct. You will need to convert to a 24 bit jpeg. There is a really nice class called CDibImage (on CP, I think or available at http://www.naughter.com/[^]) by P.J. Naughter that makes these types of things really easy. onwards and upwards...