Solved! It turns out that ConvertToGrayScale unloads the original DIB and replaces it with the new, gray scale version. Because fbmp was loaded using LockPage this causes problems later on when we UnlockPage and free mbmp. The solution is to clone fbmp and convert the clone to gray scale. Like this: mbmp.LockPage(page, fbmp); if (gray) then begin // It is necessary to clone fbmp here because ConvertToGrayScale // unloads the original DIB as part of the conversion process. // This causes access violations...
I am using the following code to open an TIFF file, read 1 page, convert it to grey scale and save it to a memory stream. I am using FreeImage 3.17 and the Delphi wrapper. procedure TImgStream.FILoadImage(fname: String; page: Integer; gray: Boolean); // Load the given page from a TIFF file into the memory buffer using FreeImage. var mbmp: TFreeMultiBitmap; fbmp: TFreeWinBitmap; begin WriteTrace(Format('TImgStream.FILoadImage fname=%s page = %d', [fname, page])); FFileName := ''; mbmp := TFreeMultiBitmap.Create;...
I am using the following code to open an TIFF file, read 1 page, convert it to grey scale and save it to a memory stream. I am using FreeImage 3.17 and the Delphi wrapper. procedure TImgStream.FILoadImage(fname: String; page: Integer; gray: Boolean); // Load the given page from a TIFF file into the memory buffer using FreeImage. var mbmp: TAurFreeMultiBitmap; fbmp: TAurFreeWinBitmap; begin WriteTrace(Format('TImgStream.FILoadImage fname=%s page = %d', [fname, page])); FFileName := ''; mbmp := TFreeMultiBitmap.Create;...
I am using what I believe to be the latest version of FreeImage. The version on the...
I finally figured it out. I had to use FreeImage_SetDotsPerMeterX & FreeImage_Se...
I am having trouble setting the X & Y Resolution TIFF tags. I am using the following...
I am creating tar archives using cygwin. When I open the archive in 7-zip every file...
Sample file
I have TIFF images that appear to be completely valid when viewed using the Windows...
This has been driving me nuts! Thank you for this.
I am trying to use FreeImage as a replacement for an older imaging package that I...
/c/somefolder doesn't work either. Here is the output from cobc --info cobc (GNU...
I am using gnucobol 1.1 on Windows server 2008 R2. I have a bunch of Cobol DLLs on...
I am using gnucobol 1.1 on Windows server 2008 R2. I have a bunch of Cobol DLLs on...
Or, I could just wrap the Cobol call in a CriticalSection, making the call effectively...
I need to ask a question that I suspect I already know the answer to. Are Cobol subroutines...
I found the problem. The Cobol subroutine was issuing an EXIT PROGRAM to return to...
I have managed to build gnucobol 1.1 with MinGW and the result is better but not...
On 01/01/15 1:02 AM, Arnold Trembley wrote: You should not need to copy any files...
On 12/31/14 12:39 PM, "László Erdős" wrote: Hi, see here: http://dev.exiv2.org/projects/exiv2/wiki/Building_on_Windows_Using_MinGW...
OK. Got around this by copying the DB include and library files to /include and /lib...
I am trying to build gnucobol 1.1 using MinGW. I am following the instructions in...
On 12/30/14 4:07 PM, Simon Sobisch wrote: I didn't used Delphi for quite a long time....
I am trying to call a Cobol subroutine compiled into a DLL from Delphi. According...
That did it. Thank You. On 12/30/14 12:25 PM, Vincent (Bryan) Coen wrote: Have you...
I am having a problem trying to run a cobol main program with dynamically loaded...
I tried to build 2.0 on cygwin from gnu-cobol-2.0_nightly_r411.tar.gz. When I try...
On 12/17/14 2:38 PM, Simon Sobisch wrote: If you didn't test with GnuCOBOL 2.0 please...
On 12/17/14 12:25 PM, Michael Anderson wrote: Ah yes, whats happening is the terminal...
Tried your program and got the message. Got me to wondering what else the problem...
I'm running on Windows. The DLL would have been found but the entry point within...
We spent a lot of time trying to get a Cobol main program to call Cobol DLL. We would...
I can't seem to find anything that would tell me what files I need to deploy with...