On 25/10/2007, Kurt Anderson <[EMAIL PROTECTED]> wrote:
>
> hi,
>
> this may be off-target for most of you, but i am floundering for
> resources and hope someone might be able to help.
>
> i am a biologist trying to simulate 2D diffusion under a variety of
> circumstances: flow, transient binding, etc. the code is actually quite
> simple and was built on the FPC carbon application which comes as part of
> the xcode integration kit.
>
> the problem for me is trying to generate image snapshots (tiff, jpeg,
> png, whatever, i dont care!) of the state of my diffusion simulation at
> different time points. i did something similar using codewarrior pascal ages
> ago (no idea where that code went, but would have been system 9), and recall
> that it was not trivial even using the metroworks libraries.
>
> so the question is: can anyone refer me to a library for free pascal,
> running on os x 10.4 under xcode, which will simplify writing an image file
> format? suggestions would also be welcome if there is an alternate version
> of (preferably mac based) pascal for which the libraries exist. i could also
> work with windows if need be.
there's a lot of image stuff built into fpc already. look in
packages/fcl-image/src/ drawing.pp for inspiration.
alternatively (lazarus), you can just drop a timage on your form, draw
what you like, then save to a file with image.picture.savetofile().
> thanks very much in advance,
>
> kurt
>
henry
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives