Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2004-02

fpImage

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink

Hi,

Is there a maintainer for fpImage ? And what is the development status of fp(read|write)bmp ? Is anyone working on adding other encodings than 32 bit ? If not, than I'll have a try to add the missing encodings.

Marc

Reply by email

Colin Western
to Marc Weustink
Marc Weustink wrote 6 lines
Hi, Is there a maintainer for fpImage ? And what is the development status of fp(read|write)bmp ? Is anyone working on adding other encodings than 32 bit ? If not, than I'll have a try to add the missing encodings.

I am not the maintainer, but I have been tinkering with it. Attached is a patch containing my efforts so far
Colin

Reply by email

Unknown author
to Colin Western: I am not the maintainer, but I have been tinkering with it. Attached is a patch…
Colin Western wrote 11 lines
Marc Weustink wrote: > Hi, > > Is there a maintainer for fpImage ? And what is the development status > of fp(read|write)bmp ? Is anyone working on adding other encodings > than 32 bit ? > If not, than I'll have a try to add the missing encodings. I am not the maintainer, but I have been tinkering with it. Attached is a patch containing my efforts so far

Thank you. I have reviewed and applied the patches. Feel free to send more patches and/or suggestions.

As for the BMP reader: it is scheduled for rewriting, I want it to be more modular. (read/write scanline in separate procedure) if you have time please feel free to do some work on it. If you have questions, don't hesitate to ask them.

Michael.

Reply by email

Colin Western
to Unknown author
Show quoted text 11 lines
>I am not the maintainer, but I have been tinkering with it. Attached is >a patch containing my efforts so far Thank you. I have reviewed and applied the patches. Feel free to send more patches and/or suggestions. As for the BMP reader: it is scheduled for rewriting, I want it to be more modular. (read/write scanline in separate procedure) if you have time please feel free to do some work on it. If you have questions, don't hesitate to ask them.

Thanks for that. Note that the patch as applied requires dynamic arrays
- the code is rather awkward otherwise.
Colin

Reply by email

Marc Weustink
to Unknown author: Thank you. I have reviewed and applied the patches. Feel free to send more patches and/or…
Show quoted text 13 lines
On Sun, 15 Feb 2004, Colin Western wrote: > Marc Weustink wrote: > > > Hi, > > > > Is there a maintainer for fpImage ? And what is the development status > > of fp(read|write)bmp ? Is anyone working on adding other encodings > > than 32 bit ? > > If not, than I'll have a try to add the missing encodings. > > I am not the maintainer, but I have been tinkering with it. Attached is > a patch containing my efforts so far

Hey great. Thanks.

Thank you. I have reviewed and applied the patches. Feel free to send more patches and/or suggestions.

Thanks 2

Marc

Reply by email

Colin Western
to Peter Vreman: Michael van Canneyt () is the maintainer. patches can be send to fpc-devel list.

Reading the bitmap docs, and a test of one bitmap makes me think the following patch is required:

diff -uNr fpc/fcl/image/fpreadbmp.pp fpc.w/fcl/image/fpreadbmp.pp
--- fpc/fcl/image/fpreadbmp.pp  2004-02-20 23:12:57.000000000 +0000
+++ fpc.w/fcl/image/fpreadbmp.pp        2004-02-22 00:24:01.000000000 +0000
@@ -57,7 +57,7 @@
      Red   :=(R shl 8) or R;
      Green :=(G shl 8) or G;
      Blue  :=(B shl 8) or B;
-    alpha :=A; //!! MVC: Used to be AlphaOpaque ???
+    alpha :=AlphaOpaque; { No transparency information in bitmaps }
      end;
  end;

Reply by email