User Activity

  • Posted a comment on discussion Open Discussion on FreeImage

    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...

  • Modified a comment on discussion Open Discussion on FreeImage

    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;...

  • Posted a comment on discussion Open Discussion on FreeImage

    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;...

  • Posted a comment on discussion Help on FreeImage

    I am using what I believe to be the latest version of FreeImage. The version on the...

  • Posted a comment on discussion Open Discussion on FreeImage

    I finally figured it out. I had to use FreeImage_SetDotsPerMeterX & FreeImage_Se...

  • Posted a comment on discussion Open Discussion on FreeImage

    I am having trouble setting the X & Y Resolution TIFF tags. I am using the following...

  • Posted a comment on discussion Help on 7-Zip

    I am creating tar archives using cygwin. When I open the archive in 7-zip every file...

  • Posted a comment on discussion Help on FreeImage

    Sample file

View All

Personal Data

Username:
sboyd
Joined:
2000-10-03 21:44:01

Projects

  • Project Logo Essentials.Net   Last Updated:
  • Project Logo Firebird A powerful, cross platform, SQL database system Last Updated:

Skills

  • No skills entered.

Personal Tools