Declaration
procedure setDPI(DPI: int32_t); safecall;
Description
Specify the resolution (dots per inch) of the image.
// Generate PDF with all pages at 300 dpi
pdfGen := IEVisionLib.createSearchablePDFGenerator('./', IEOCRLanguageList[OCR_English_language].Code);
pdfGen.beginDocument(PAnsiChar(AnsiString(langPath + 'out')), PAnsiChar(AnsiString('title')));
for i := 0 to ImageEnMView1.ImageCount - 1 do
begin
ImageEnMView1.SelectedImage := i; // Show the image being processed
im := ImageEnMView1.IEBitmap.GetIEVisionImage();
im.SetDpi( 300 );
pdfGen.addPage( im )
end;
pdfGen.endDocument();