Jpeg2000ImageData

Jpeg2000ImageData

Forum member · Aug 20, 2013
I am attempting to convert a System.Drawing.Bitmap to peg2000ImageData. Here is what I was trying: ceTe.DynamicPDF.Imaging.Jpeg2000ImageData graphicData; using (MemoryStream mStream = new MemoryStream()) { pageImage.Save(mStream, ImageFormat.Jpeg); graphicData = new ceTe.DynamicPDF.Imaging.Jpeg2000ImageData(mStream); } This fails. It seems it wants the stream already in the Jpeg2000 format. Is there any way to make it convert the BMP to Jpeg2000? Thanks!

Re: Jpeg2000ImageData

Support · Aug 21, 2013
Hello, The Jpeg2000ImageData class of our DynamicPDF API allows you to load the image which is of type JPEG2000. If you would like to load the JPEG image data then you can use another class called JpegImageData which takes file path or stream of respective type. It is not possible to convert BMP to JPEG2000 using our DynamicPDF Generator for .NET product. Thanks, ceTe Software Support Team.

Re: Jpeg2000ImageData

Forum member · Aug 21, 2013
Great that is what I needed to know, thank you very much!