Is there a component for displaying vector graphics in Lazarus? lazarus / 39-Graphics ---------------------------------------------------------------------- vfclists · 2010-03-25 21:31 Is there a component for display vector graphics in Lazarus? I am looking for something that will not lose resolution and will show more detail when it is enlarged. Would that be a vector graphic? ---------------------------------------------------------------------- Ñuño_Martínez · 2010-03-26 08:55 http://www.lazarus.freepascal.org/index.php/topic,7212.0.html http://www.lazarus.freepascal.org/index.php/topic,7165.0.html Next time, use the Search button. ---------------------------------------------------------------------- vfclists · 2010-03-26 22:20 I did an amount of searching before making the post, and saw both. fpvectorial appears to require FreePascal 2.3.1 and I am on 2.2.4. AggPas also needs to be compiled and the instructions are more complicated than I would like. I also asked for a component, something like TImage or TGraphic I can load a file into. This is not an area I am familiar with on both the programming side and the graphics site, and I trying to avoid risking by compilation setup. Quote from: Ñuño_Martínez on March 26, 2010, 09:55:16 amhttp://www.lazarus.freepascal.org/index.php/topic,7212.0.html http://www.lazarus.freepascal.org/index.php/topic,7165.0.html Next time, use the Search button. ---------------------------------------------------------------------- felipemdc · 2010-03-27 12:29 Quote from: vfclists on March 26, 2010, 11:20:25 pmI did an amount of searching before making the post, and saw both. fpvectorial appears to require FreePascal 2.3.1 and I am on 2.2.4. It doesn't require 2.3.1, it just comes preinstalled with it, but it works with older compilers too. Just download the sources and build it with your FPC. The command to download only fpvectorial should be something like: svn checkout http://svn.freepascal.org/svn/fpc/trunk/packages/fpvectorial fpvectorial ---------------------------------------------------------------------- vfclists · 2010-03-29 15:42 I am not familiar with the graphics area, but what I am looking for is something which will not become pixellated when it is resized. With this example code I understand that the image has to be converted to a pdf format before it can be used. The image I have been given is a Photoshop .psd file. Is there a way to convert it into a pdf file first? Is it a visual component on its own right, or is the code attached to another graphic object which as displayed on the screen or has some kind of Canvas property? I take it that it has to be redrawn from the stored strings whenever the size is readjusted? Forgive the numerous questions, I am more of database guy than a graphics guy. Thanks ---------------------------------------------------------------------- theo · 2010-03-29 16:11 It's not very clear what you need. Photoshop files have nothing to do with vector graphics afaik. They are like JPEG, PNG with extra info for layers and stuff. The quality depends on the size/resolution. Converting to PDF does not make sense imho. ---------------------------------------------------------------------- vfclists · 2010-03-29 16:26 Someone I did a program for complained that the image size which had to be reduced was too pixellated, so I asked him to get his graphics designer to create a vector image, which resulted in the PSD file being delivered. After opening it in GIMP I had started to suspect that it isn't truly a vector image. It would be nice to know that it is possible if the graphics are created with a vector graphics program. Quote from: theo on March 29, 2010, 06:11:29 pmIt's not very clear what you need. Photoshop files have nothing to do with vector graphics afaik. They are like JPEG, PNG with extra info for layers and stuff. The quality depends on the size/resolution. Converting to PDF does not make sense imho. ---------------------------------------------------------------------- Zaher · 2010-03-29 19:01 You can not draw Vector using PhotoShop or GIMP, you must use program that draw and save vectors like inkscape or Adobe Illustrator or Corel Draw, Now you need to export you image to still vector and with format can Lazarus draw it, Inkscape can export as SVG and AggPas can read it but not all the features of Inkscape, also Inkscape can export PS (PostScript) or WMF, EMF for Windows. ---------------------------------------------------------------------- flippinho · 2010-09-20 12:10 Hello, this comes a bit late, but maybe it is from interest to other people who read this There is a pretty good binding for the RSVG library for reading SVG Images http://code.google.com/p/luipack/source/browse/trunk/cairo/rsvg/rsvg.p as There are same helpful classes and examples which go with this binding. Basically the RSVG-library allows to parse svg images and render and save them with cairo which ships already with Lazarus. I hope this might help someone, bye, flippinho