|
Hello,
It seems you are using LEADTOOLS DotNet version13 toolkit.
I tried to check the same issue using your code, but I need to know the following:
- What is the type of the ctlImage contro (in your code)?
- What is the BPP of the result Tif JBIG image?
- If you tried to save any another image (such as BMP image) to Tif JBIG format.
Then try to load it. Do you get the same results?
However, I checked this issue using the following code, and the image is loaded successfully on the LEAD Picture Box control:
=========================================
Dim codecs As New LEAD.Drawing.Imaging.Codecs.Codecs
PictureBox1.LEADImage = LEAD.Drawing.Image.FromFile("c:\1.bmp")
codecs.Save(PictureBox1.LEADImage, "c:\test123.tif", LEAD.Drawing.Imaging.ImageFormat.TifJbig, LEAD.Drawing.Imaging.PixelFormat.Format24bppBgr, LEAD.Drawing.Imaging.Codecs.Codecs.SaveModifyConstants.Append)
codecs.LoadCompressed = LEAD.Drawing.Imaging.Compression.Super
codecs.Load(PictureBox1.LEADImage, "c:\test123.tif", LEAD.Drawing.Imaging.PixelFormat.DontCare, 1, 1)
=========================================
Please, try the same issue using this code.
Regards,
Maen Badwan LEADTOOLS Technical Support
|