in

Archived Data Techniques Forums

Writing CCITT G4 LSB Files

Last post 03-04-2009 6:34 PM by support. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-04-2009 12:33 PM

    • jchen
    • Not Ranked
    • Joined on 03-04-2009
    • Posts 2

    Writing CCITT G4 LSB Files

    Hi,

     I am trying to use ImageMan.NET to create a CCITT G4 LSB type TIFF image, however, the settings that I have tried result in a different type of image. It is imperative that the files be in that specific format.

     When I tried these options:

    imTifEncoder = new DTI.ImageMan.Codecs.TifEncoder();

    imTifEncoder.Compression = DTI.ImageMan.Codecs.TifCompression.TifGroup4;

    imTifEncoder.FillOrder = DTI.ImageMan.Codecs.TifFillOrder.LeastSignificantBitFirst;

    ...

    imTifEncoder.RowsPerStrip = imImage.CurrentImage.Height;

    imImage.Save(sNewFileName, imImage.CurrentImageIndex, 1, imTifEncoder);

     

     I got an image file that was actually in TIFF LSB - LSW format. It shows up as a blank image in a client application.

    Any help is appreciated.

  • 03-04-2009 1:56 PM In reply to

    • jchen
    • Not Ranked
    • Joined on 03-04-2009
    • Posts 2

    Re: Writing CCITT G4 LSB Files

    A few other bits of data:

     imImage is of the type DTI.ImageMan.ImageCollection.

     I also use a DTI.ImageMan.Commands.ModifyBitDepthCommand to change the images to be bilevel.

    The images seem to display correctly in MS Paint and other TIF viewers, however, the file is in type TIF LSB - LSW compression, instead of CCITT Group 4, and thus when opened by our client application, it displays as a blank image.

    When using imTifEncoder.Compression = DTI.ImageMan.Codecs.TifCompression.TifModCcitt, it outputs a CCITT Group 3 image, which again is blank when opened.

    When using TifCompression.Tiflzw, it shows up as type LZW, but still does not display.

  • 03-04-2009 6:34 PM In reply to

    Re: Writing CCITT G4 LSB Files

    Hi,

    I believe we have responded to your email on this issue, if not pls let us kow.

    Sean
    Data Techniques Online Support
Page 1 of 1 (3 items)
Copyright 2009 Data Techniques, Inc. All Rights Reserved.