Recent

Author Topic: [Wiki] Sample Graphics  (Read 37610 times)

lainz

  • Guest
[Wiki] Sample Graphics
« on: March 13, 2011, 06:09:22 pm »
go here:
http://wiki.lazarus.freepascal.org/Sample_Graphics

Lazarus is a powerfull environment to draw graphics, inspirated with BGRABitmap tutorial and my previous Wiki article 'Double Gradient' (now a lot of improvements / versions) see the new 'Sample Graphics' article, like a database of free graphics to use in Lazarus, no bitmap files: just draw with code!

fredycc

  • Sr. Member
  • ****
  • Posts: 264
Re: [Wiki] Sample Graphics
« Reply #1 on: March 13, 2011, 11:20:16 pm »
 :) Thanks a lot.

Regards.

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: [Wiki] Sample Graphics
« Reply #2 on: March 13, 2011, 11:39:58 pm »
Looks very promising. Please keep up the good work.
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

lainz

  • Guest
Re: [Wiki] Sample Graphics
« Reply #3 on: March 14, 2011, 05:34:50 pm »

liyuangarcia

  • Newbie
  • Posts: 3
Re: [Wiki] Sample Graphics
« Reply #4 on: March 14, 2011, 10:23:20 pm »
Under Linux With GTK double gradient with alpha not Work :(

lainz

  • Guest
Re: [Wiki] Sample Graphics
« Reply #5 on: March 15, 2011, 02:09:44 am »
Under Linux With GTK double gradient with alpha not Work :(

circular know why

Or see here
« Last Edit: March 15, 2011, 03:35:22 pm by lainz »

lainz

  • Guest
Re: [Wiki] Sample Graphics
« Reply #6 on: March 15, 2011, 03:55:57 pm »
Under Linux With GTK double gradient with alpha not Work :(

Plese test again.

lainz

  • Guest
Re: [Wiki] Sample Graphics
« Reply #7 on: March 17, 2011, 02:27:53 pm »
See the new addition? in progress: 'lazarus about dialog'
http://wiki.lazarus.freepascal.org/Sample_Graphics#Lazarus_About

Gintas

  • Jr. Member
  • **
  • Posts: 71
    • Developer's Diary
Re: [Wiki] Sample Graphics
« Reply #8 on: March 18, 2011, 04:33:03 pm »
The about box looks really professional.
 I don't see who made the Double Gradient and licence is pretty unclear for now.

lainz

  • Guest
Re: [Wiki] Sample Graphics
« Reply #9 on: March 18, 2011, 05:01:12 pm »
The about box looks really professional.
 I don't see who made the Double Gradient and licence is pretty unclear for now.

I did Double Gradient, nGradient 'mac.1', Gradient Filler 'eny'.

LGPL for Double Gradient.

JD

  • Hero Member
  • *****
  • Posts: 1908
Re: [Wiki] Sample Graphics
« Reply #10 on: March 18, 2011, 05:47:20 pm »
Is there any way we can use this to improve TChart - the Lazarus charting module? That would be wonderful.
Linux Mint - Lazarus 4.0/FPC 3.2.2,
Windows - Lazarus 4.0/FPC 3.2.2

mORMot 2, PostgreSQL & MariaDB.

circular

  • Hero Member
  • *****
  • Posts: 4450
    • Personal webpage
Re: [Wiki] Sample Graphics
« Reply #11 on: March 19, 2011, 12:05:34 am »
Under Linux With GTK double gradient with alpha not Work :(

I've updated in LazPaint zip file to the last version of BGRABitmap and i've added DoubleGradientAlpha and nGradientAlpha into 'BGRAGradients' unit.

Maybe you can use this JD. Notice that you may want to use radial gradients, which are accessible in a TBGRABitmap object.
Conscience is the debugger of the mind

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: [Wiki] Sample Graphics
« Reply #12 on: March 19, 2011, 01:44:23 pm »
Quote
Is there any way we can use this to improve TChart

I have recently stated on the mailing list that I think BRGABtimap back-end
for TAChart would be a good idea.
TAChart already includes AggPas and OpenGL back-ends (aka "drawers").
The main problem is that it would create a "reverse" dependence:
the core package would depend on non-core one.
From that point of view, the best solution would be to include such a back-end
in BRGABitmap instead of TAChart
(or to include BGRABitmap into the Lazarus, which is harder to do).

Is somebody wants to work on this, I'll be glad to help.
Otherwise, I will probably do it myself, but not soon.

Generally, I see strong demand for the gradients in TAChart,
so I am willing to implement them independently of BRGABitmap,
if somebody would specify good enough API design
(i.e. what properties/methods should be added, how should they work).

circular

  • Hero Member
  • *****
  • Posts: 4450
    • Personal webpage
Re: [Wiki] Sample Graphics
« Reply #13 on: March 20, 2011, 10:59:05 pm »
About charts, I added phong shading to BGRABitmap. It's on subversion. Maybe it can help...  :)
« Last Edit: March 20, 2011, 11:03:24 pm by circular »
Conscience is the debugger of the mind

Ask

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 687
Re: [Wiki] Sample Graphics
« Reply #14 on: March 21, 2011, 06:25:16 am »
Wow. It does "help" in the sense that it makes me want to implement BGRA back-end even more ;-)

However, the API question remains. Maybe you have suggestions?

 

TinyPortal © 2005-2018