Page 1 of 1

Scale Function problem

Posted: Tue Dec 18, 2012 6:39 pm
by Ezio
I'm writing an OCR application.
I use GDPicture 8.5.22 to cut portions of binary image and I enlarge 3 times the image using this following instruction

GDImaging.Scale(pImageID, 300,System.System.Drawing.Drawing2D.InterpolationMode.HighQualityBilinear);

In my computer all works fine, I get good image qulity and good OCR results.
When I install application on dfferent machine I get poor image quality, and I get bad OCR results.

I redist this GDPicture files :


Can you help me to fix this problem?
Are you informed about this kind of problem?
Last question, Gdpicture Scale Function call external System.Drawing library functions?

The only difference between two computers are .net framework installed:

In my computer I have installed .Net framework 2.0 SP 2 and successive upgrade using Microsoft update utility
In Customer computer I put .Net 2.0 SP 2 but for security policy I can't upgrade using Microsoft update utility.

I did this try:
I saved images to a BMP file after scaling it using GdPicture Scale Function
I verify different quality, produced by each computer.
I modify my application to recognize form BMP files i saved.
On each computer I get same OCR result quality.
So I can say that the problems are related to the function Scale()

I'm sorry for the length of the post but I had to explain all the tests done.
Waiting for your help


Re: Scale Function problem

Posted: Wed Jan 30, 2019 3:21 pm
by Gabriela

> Gdpicture Scale Function call external System.Drawing library functions?
The answer to this question is yes. It is obvious from the used parameter InterpolationMode. ... Scale.html