Recent

Author Topic: Best graphics library  (Read 15711 times)

Mando

  • Full Member
  • ***
  • Posts: 181
Best graphics library
« on: March 17, 2011, 10:47:55 am »
Hi.

I developing a simple image editor and I need to rotate, cut, change bright a contrast, etc.... And direct access to pixels, like delphi scanline to do my own functions.

I need know what library is the best to do it. I try LazRGBGraphics and TBGRABitmap.

There is any more? And Whet is the best?


thanks

« Last Edit: March 17, 2011, 10:52:24 am by Mando »

Chronos

  • Full Member
  • ***
  • Posts: 241
    • PascalClassLibrary
Re: Best graphics library
« Reply #1 on: March 17, 2011, 04:24:23 pm »
What is best depends on point of view. Huge libraries which tries to handle everything tend to be slow and complex because of generality. Small libraries are fast and easy to learn but can be used only for specific applications.

Then what would be main aspects for comparison?
  • Processing speed
  • Support for bitmap or vector graphics
  • Support for file formats
  • Support for multiple pixel color models and various bit depth
  • Amount of various graphic drawing functions
  • Portability across platforms
  • Size of development team and sustainability

There are some "one man show" libraries and others with teams. There are some libraries ported from Delphi and others ported from C.

LCL
LazRGBGraphics http://wiki.freepascal.org/LazRGBGraphics
BGRABitmap http://wiki.freepascal.org/BGRABitmap
AggPas http://www.crossgl.com/aggpas/
fpVectorial http://wiki.freepascal.org/fpvectorial
Andorra 2D http://andorra.sourceforge.net/
Graphics32 http://graphics32.org
...

Which one is the best? Perhaps none. Graphics32 is pretty fast but not portable and don't have custom font rendering.
If you want to create simple graphic editor you should have a look at http://wiki.freepascal.org/LazPaint which use BGRABitmap. LazRGBGraphics is used by http://wiki.freepascal.org/Lazarus_Image_Editor.

You have to try for yourself and find out which one will serve best for your needs.

Mando

  • Full Member
  • ***
  • Posts: 181
Re: Best graphics library
« Reply #2 on: March 17, 2011, 06:44:06 pm »
Thanks for your reply.

I'll try to do a test project.

Regards

BlueIcaro

  • Hero Member
  • *****
  • Posts: 793
    • Blog personal
Re: Best graphics library
« Reply #3 on: March 17, 2011, 08:27:56 pm »
Here you have another one

Allegro

/BlueIcaro

circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: Best graphics library
« Reply #4 on: March 20, 2011, 11:37:20 pm »
AggPas is very powerful.
Conscience is the debugger of the mind

jixian.yang

  • Full Member
  • ***
  • Posts: 173
Re: Best graphics library
« Reply #5 on: March 21, 2011, 03:45:09 am »
rgbdrawutils.pas is simplest, it provides a scanline for a new bitmap and it is improving.
https://lazarus-ccr.svn.sourceforge.net/svnroot/lazarus-ccr/applications/lazimageeditor


Chronos

  • Full Member
  • ***
  • Posts: 241
    • PascalClassLibrary
Re: Best graphics library
« Reply #6 on: March 21, 2011, 07:20:22 am »
We can maintain list of known graphics libraries for quick comparison in wikipedia fashion here: http://wiki.freepascal.org/Graphics_libraries

mdalacu

  • Full Member
  • ***
  • Posts: 233
    • dmSimpleApps
Re: Best graphics library
« Reply #7 on: March 21, 2011, 09:02:39 am »
I am using Vampyre Imaging Library , it pretty fast and stable.
http://imaginglib.sourceforge.net/

Mando

  • Full Member
  • ***
  • Posts: 181
Re: Best graphics library
« Reply #8 on: March 21, 2011, 09:43:03 am »
Hi!

Thak you all for your information. I'll try to test all of them.

I will keep you informed.
regards.



circular

  • Hero Member
  • *****
  • Posts: 4221
    • Personal webpage
Re: Best graphics library
« Reply #9 on: March 21, 2011, 04:34:39 pm »
We can maintain list of known graphics libraries for quick comparison in wikipedia fashion here: http://wiki.freepascal.org/Graphics_libraries

Sure. I've added BGRABitmap infos.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018