Resource Base
Table of contents
Notice: This documentation is archived. For the latest product features and documentation, please visit Dynamsoft Capture Vision Documentation.

CNormalizedImageResult Class

Stores the normalized image result.

class dynamsoft::ddn::CNormalizedImageResult
Method Description
GetImageData Gets the image data of the NormalizedImageResult.
SaveToFile Save the normalized image result to a file.

GetImageData

Gets the image data of the NormalizedImageResult.

const CImageData* GetImageData() 

Return Value

The image data.

SaveToFile

Save the image data to a file.

int dynamsoft::ddn::CDocumentNormalizer::SaveToFile(const char* filePath)

Parameters

[in] filePath The path of the output image file with the extension specifying the image format. It supports BMP, PNG, JPEG and PDF file types. If the target file exists, the image will be appended to the last page of the PDF file while the BMP, PNG and JPEG file will be replaced.

Return Value

Returns error code (returns 0 if the function operates successfully).

You can call DC_GetErrorString to get detailed error message.

Code Snippet

CDocumentNormalizer ddn;
CNormalizedImageResult* normalizedResult = NULL;
ddn.Normalize("YOUR-SOURCE-FILE-PATH", "", NULL, &normalizedResult);
if (normalizedResult != NULL)
{   
    normalizedResult->SaveToFile("YOUR-TARGET-FILE-PATH");
    CDocumentNormalizer::FreeNormalizedImageResult(&normalizedResult);
}

Is this page helpful?

YesYes NoNo

In this article:

Version 2.4.10

  • version 2.4.10
  • Version 2.x
    • Version 2.2.10
    • Version 2.2.0
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
  • Version 1.x
    • Version 1.0.20
    • Version 1.0.10
    • Version 1.0.0
Change +