Re: [fpc-pascal] questions on fpimage
On Do, 2017-01-05 at 11:15 +0100, Mattias Gaertner wrote: > On Tue, 03 Jan 2017 02:54:05 +0100 > Marc Santhoffwrote: > > > Hi, > > > > firstly a happy new year to you all and keep on rocking! > > > > While reading the fpimage unit code I found some pieces I don't > > understand and could not clear up reading the docs. Here we go: > > > > > > TFPCustomImage = class(TPersistent) > > [...] > > public > > [...] > > property Extra [const key:string] : string read GetExtra write > > SetExtra; > > property ExtraValue [index:integer] : string read GetExtraValue > > write SetExtraValue; > > property ExtraKey [index:integer] : string read GetExtraKey write > > SetExtraKey; > > procedure RemoveExtra (const key:string); > > function ExtraCount : integer; > > > > > > Whats that good for? Ist to tag images inside my own program or does it > > handle image meta data like EXIF and stuff? > > Yes. Both. OK, fine. But there is no code doing sth. like reading EXIF tags from files, I have do do myself? I was hoping to find some code handling image comments and the like, still searching for meta data access. ;) > > And at the end: > > > > > > initialization > > ImageHandlers := TImageHandlersManager.Create; > > > > > > Looking at this class it seems to be sort of a type registry, maybe able > > to detect type and name or instantiate the reader and writer classes. > > How ist that to be used and do I need to care for? > > All image formats register themselves there. > It is used by > TFPCustomImage.FindHandlerFromExtension > and > TFPCustomImage.LoadFromStream > > You can query it yourself or use the above. Nice and helpful, thanks. Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC clean room project
On 2017-01-02 22:07, Sven Barth wrote: > Not to mention that for a little while Embarcadero even used Free Pascal > for their iOS support before they had their own compiler. Exactly, and that probably makes all arguments moot in a court of law. Nevertheless, we all know FPC and Lazarus take copyrighted code very serious, and prevents using it when found. The FPC project even includes a utility to make such code comparisons and reports the results. Years ago that utility was used to find and clean room implement a few copyrighted functions (or function implementations that was too close for comfort). I also know from first hand experience that Embarcadero has been made aware of CodeTyphon's copying and distribution of FireMonkey (called Orca or something in CodeTyphon). But then again, FPC and Lazarus has nothing to do with CodeTyphon - so no need to discuss that further here. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] FPC 3.0.0 seed compiler for Rasperry Pi ARM?
On Thu, 5 Jan 2017 02:07:00 +0100 (CET), "Karoly Balogh (Charlie/SGR)"wrote: >Hi, > >On Thu, 5 Jan 2017, Bo Berglund wrote: > >> I just need the seed compiler to be able to build FPC from sources. >> And build Lazarus of course. > >Then you need "ppcarm" from that archive, and nothing else. Just copy it >whereever you want, in your home dir, or something and do: > >make all install FPC= >INSTALL_PREFIX= > >in the root of the SVN tree. > >FPC works from pretty much anywhere. You can have multiple copies in your >home easily. It doesn't have to be installed at a certain location. > Thanks for the info! I will put the ppcarm file into a new tar file and upload this to my website as the seed compiler. Then I will modify my install script to get this tar file rather than the one it now gets (2.6.4 from SF). And I will NOT put it into /usr/bin but keep it somewhere in the home dir tree. What I also need to do is to create a fpc.cfg file and put that in a proper location. In the setup.sh file in the download I found this command: # Create the cfg file $FPCDIR/bin/fpcmkcfg -d basepath=$FPCDIR/lib/fpc/\$FPCVERSION -o $FPCDIR/bin/fpc.cfg I should be able to use something similar provided I also add fpcmkcfg into the tar file, right? Seems like it deposits the fpc.cfg file in the same dir as ppcarm. Will such a file override any same name file located on path? Note that my install script is made to assume nothing about the target RPi system, so it must contain everything needed. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal