| At some point in time I have to wonder when people will go to use free | pascal at http://www.freepascal.org/ | | They are Delphi and turbo pascal compliant
How is free pascal an improvement over gpc in terms of graphics output?
I searched both the programmer's guide and the language reference guide for "graphics." I found nothing.
| And lets face it, here in the states pascal usage has dropped | significantly since the the infestation of java...
Perhaps your intent was to post in the "Quo vadis GPC" thread? I plea for discussions of GPC that have nothing to do with GRX be taken to that thread. Thanks.
| | | | | | -----Original Message----- | From: gpc-owner@gnu.de [mailto:gpc-owner@gnu.de] On Behalf Of | twixt@cstone.net | Sent: Thursday, July 29, 2010 11:51 AM | To: gpc@gnu.de | Subject: Quo vadis GRX? | | | | I would like to use Pascal to generate images in high resolution and at | least 24 bit color depth. There are links to a GRX library, which | provides | 2d graphics, but the user manual there was last updated in 2007, which | suggests they are further behind than GPC. I don't find any grx library | in | my Debian (Lenny) list of available packages, using the search feature | within aptitude. Apparently I would have to compile GRX and then somehow | get it to work with Pascal. As a barely capable programmer, I do not | look | forward to this with glee. (BTW I am not asking for help, just making a | point.) In all the discussion about the future of GPC, I am a bit | surprised that no one seems to talk about graphics output. Did I miss | something? I do that a lot. | | How about incorporating graphics | output directly in Pascal? Is there much interest in this? It seems to | me | that it would make Pascal more attractive. It would be "like POVray | but even more powerful" as any general purpose programming language | naturally would be. Thanks for your time. | | | |
| PRIVILEGED AND CONFIDENTIAL | This email transmission contains privileged and confidential information | intended only for the use of the individual or entity named above. If the | reader of the email is not the intended recipient or the employee or agent | responsible for delivering it to the intended recipient, you are hereby | notified that any use, dissemination or copying of this email transmission | is strictly prohibited by the sender. If you have received this | transmission in error, please delete the email and immediately notify the | sender via the email return address or mailto:postmaster@argushealth.com. | Thank you. | | | | |
On Thu, Jul 29, 2010 at 7:36 PM, twixt@cstone.net wrote:
How is free pascal an improvement over gpc in terms of graphics output?
Do you mean graphics as in generating image files or as in drawing to the screen?
Free Pascal comes with fcl-image, a very powerful library for drawing images:
http://wiki.lazarus.freepascal.org/fcl-image
It supports 64-bits per-pixel, although that usually goes down when saving as most formats use 24-bits per pixel + 8=bits alpha channel.
For drawing on the screen you can use Lazarus:
http://wiki.lazarus.freepascal.org/Developing_with_Graphics
The best documentation for Lazarus for drawing graphics currently is the Lazarus book, which has 36 pages about LCL images.
http://www.amazon.de/Lazarus-Arbeiten-mit-IDE-Klassenbibliotheken/dp/3936546...
At the moment the book is available only in german language, I am working in the english version.
With Free Pascal you can also use a 3rd party graphics library like Graphics32:
But using LCL graphics with TLazIntfImage is also extremely fast and also supports alpha-blending.
I searched both the programmer's guide and the language reference guide for "graphics." I found nothing.
Usually you should navigate the wiki to find stuff. Graphics are not part of the language or of the compiler, they are provided by libraries.
| And lets face it, here in the states pascal usage has dropped | significantly since the the infestation of java...
That doesn't mean you can't write something like this with Pascal:
http://wiki.lazarus.freepascal.org/Lazarus_Application_Gallery#3D_Image_Comm...