jpg image

I would like to save PhImage_t image as jpg file. There is no
documenation of the PxWriteImage function. However I found an example on but I am not
able to save it in any other format than BMP. Could you send me a short
example how to do it?

Thank you,
martin sevcik