Quote
Well, there are currently no useful Imaging visual/display functions to speak of.
Sorry if i was misinterpreted. I did not mean "not useful", i mean not needed by some types of projects.
QuoteDo you mean DisplayImage?
All functions in ImagingComponents. They are dependent/used by LCL/VCL, so in a fpGui project can not be compiled.
QuoteMore ifdefs could be put here so that the components unit would compile with other widgetsets too (probably without DisplayImage function).
Currently Imaging does not support Qt and Carbon. Adding such ifdefs would allow compiling with them and resolves one of the problems.
BTW: did you considered using include files instead of ifdefs? It leads to more readable code. The problem is that the Delphi ide does not support include files as well as Lazarus.
QuoteConverting images to LCL TBitmap works ok with different widgetsets?
I did not tested, but i can do it and inform you.
QuoteI could split the package but if this could be resolved just by conditional compilation I would prefer this approach (= if other stuff in the unit work for all widgetsets remove DisplayImage only).
Feel free to do what is best to you. I already managed this problem by myself, just it would be easier to have bundled in the main Imaging distribution.
I can (try) implement the Qt widgetset code and move the code for include files (only for LCL, keep VCL code in the same unit) if you agree. I don't have a mac so no carbon, but i could add empty methods to allow compilation.
BTW: the project i'm working is LuiImage, an image display component that uses cairo to display. It features tiling mode, arbitrary scale and clips and some more. The code and demo can be found at https://svn.bountysource.com/luipack/trunk/luicairo/. The required packages can be found at https://svn.bountysource.com/luipack/trunk/cairo/. In https://svn.bountysource.com/luipack/trunk/cairo/imaging/extra/ i've put the modified Imaging packages for those that want to use LuiImage.
Is necessary the cairo dll: http://www.gtk.org/download-windows.html
Luiz