Community

set page image to 300 dpi.

FR Engine 11 SDK

I'm trying to write a file with settings to 300 dpi? what parameter should i use?

Was this article helpful?

0 out of 0 found this helpful

Comments

4 comments

  • Avatar
    Anastasia Galimova

    If you scan the documents which you recognize, you can set the resolution using settings of your scanner. Otherwise, please share or send to SDK_Support@abbyy.com an image sample and the description of how you get it.

    0
  • Avatar
    vbknight

    I'm not actually scanning the documents, but loading the image and and using the statement below:

    > page.ImageDocument.ColorImage.WriteToFile(batchfolder
    > + "\\" + PageName + pg + ".jpg", FREngine.ImageFileFormatEnum.IFF_TiffColorPackbits,
    > ImageModification);
    

    I want to add a param? to set the DPI to 300.

    0
  • Avatar
    vbknight

    I was able to achieved this using code below:

    page.ImageDocument.ChangeResolution(300);

    0
  • Avatar
    SDK_support

    You can change the image resolution during image loading via IImageDocument::ChangeResolution method. Please find more details in Help → API Reference → Image-Related Objects → Image Document.

    1

Please sign in to leave a comment.