Recent

Author Topic: LazPaint (alpha-blending, antialiasing, filters)  (Read 526488 times)

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #15 on: February 07, 2011, 11:03:12 am »
I just used it and it worked well, but some suggestions:

1> There is no code in the subversion, it should really be developed there

2> No tooltips in the user interface make it hard to guess that items mean. I took some time to figure out what the number near the colors is the alpha. A label near it or a tooltip would help a lot. All buttons and spin controls in the main screen should have tooltips

3> Couldn't compile with the latest Lazarus 0.9.31. I had to apply the following modification:

Code: [Select]
unit BGRAGtkBitmap;

....

uses
....
  {$IFDEF LCLgtk2}
  gdk2, gtk2def, gtk2Proc;
{$ENDIF}
{$IFDEF LCLgtk}
  gdk, gtkdef, gtkProc;
{$ENDIF}

benohb

  • Full Member
  • ***
  • Posts: 201
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #16 on: February 08, 2011, 01:06:32 am »



Quote
What error message do you get ?

Code: [Select]
bgradefaultbitmap.pas(210,17) Warning: An inherited method is hidden by "TBGRADefaultBitmap.Equals(TBGRADefaultBitmap):Boolean;"
bgragtkbitmap.pas(57,2) Fatal: Can't find unit gtkDef used by BGRAGtkBitmap


This resolves the problem

  gtk2Def, gtk2Proc;


Sorry for the bad language

Thanks for the wonderful program  ::)


« Last Edit: February 08, 2011, 02:01:37 am by benohb »

mWaltari

  • New Member
  • *
  • Posts: 15
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #17 on: February 08, 2011, 06:54:35 am »
Hello,

Here is related project, that we have been thinking to port for Lazarus... if anyone is interested to help ;)

IT is going trough pretty heavy refactoring right now, to make future work and porting bit easier project.

http://sourceforge.net/projects/graphicsmagic/

-TP-

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #18 on: February 08, 2011, 10:13:49 am »
A way to avoid flickering.
Thanks, it seems to work.

Quote
This could be simplified by the compiler in something like
Looks like an ASMCSE optimization case. Have you enabled that? (not sure about the stability state, but AFAIK it's enabled in -O3 and I've used it and so far no trouble yet, at least in recent version).
Ok, i've activated all optimizations features. That's better.
« Last Edit: February 08, 2011, 10:24:37 am by circular »
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #19 on: February 08, 2011, 10:26:04 am »
Gangsterish ;-)
Nope, that's totally legal...   ;)

1> There is no code in the subversion, it should really be developed there
Really ? On SourceForge, it says that it can be accessed with :
svn co https://lazpaint.svn.sourceforge.net/svnroot/lazpaint lazpaint

I'm working on a local copy, and I publish it when it seems to me ok. I guess it's not the right way. How do you suggest to do that ?

Quote
2> No tooltips in the user interface make it hard to guess that items mean. I took some time to figure out what the number near the colors is the alpha. A label near it or a tooltip would help a lot. All buttons and spin controls in the main screen should have tooltips
Ok. I've added them.

Quote
3> Couldn't compile with the latest Lazarus 0.9.31. I had to apply the following modification:

Code: [Select]
unit BGRAGtkBitmap;

....

uses
....
  {$IFDEF LCLgtk2}
  gdk2, gtk2def, gtk2Proc;
{$ENDIF}
{$IFDEF LCLgtk}
  gdk, gtkdef, gtkProc;
{$ENDIF}
I've done the modifications and uploaded a new version of BGRABitmap on SourceForge.
« Last Edit: February 08, 2011, 10:55:29 am by circular »
Conscience is the debugger of the mind

Leledumbo

  • Hero Member
  • *****
  • Posts: 8287
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #20 on: February 08, 2011, 10:45:23 am »
Quote
Gangsterish ;-)
If you go to Turbo Pascal or OSDev forum, you'll encounter that more often and that's a normal thing there :P Even some would directly encode the instructions with db/dd/dw.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #21 on: February 08, 2011, 03:34:41 pm »
Really ? On SourceForge, it says that it can be accessed with :
svn co https://lazpaint.svn.sourceforge.net/svnroot/lazpaint lazpaint

I'm working on a local copy, and I publish it when it seems to me ok. I guess it's not the right way. How do you suggest to do that ?

The usual way is to do it like this:

svn co https://lazpaint.svn.sourceforge.net/svnroot/lazpaint lazpaint

Then put your code inside lazpaint

Then add all your files:

cd lazpaint
svn add *.lpi *.pas *.lfm *.pp

sometimes you need to set the properties of the files too:

svn propset svn:mime-type text/plain *.lpi *.pas *.lfm
svn propset svn:eol-style native *.lpi *.pas *.lfm

Then commit the changes:

svn commit --message "Initial commit of the code"

Then when I do my own checkout I will get your files.

You can also try to google for: subversion tutorial

If you are using Windows, then install TortoiseSVN

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #22 on: February 08, 2011, 09:28:36 pm »
Hey folks !

Here is a new version (1.1) with features we have taked about :
- selection (including drawing the selection with a pen)
- cut'n'paste but within the program, I did not find how to access the system clipboard yet
- current tool is shown
- tool tips every where and keyboard shortcuts

https://sourceforge.net/projects/lazpaint/files/lazpaint/
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #23 on: February 08, 2011, 09:32:09 pm »
Really ? On SourceForge, it says that it can be accessed with :
svn co https://lazpaint.svn.sourceforge.net/svnroot/lazpaint lazpaint

I'm working on a local copy, and I publish it when it seems to me ok. I guess it's not the right way. How do you suggest to do that ?

The usual way is to do it like this:

svn co https://lazpaint.svn.sourceforge.net/svnroot/lazpaint lazpaint

Then put your code inside lazpaint

Then add all your files:

cd lazpaint
svn add *.lpi *.pas *.lfm *.pp

sometimes you need to set the properties of the files too:

svn propset svn:mime-type text/plain *.lpi *.pas *.lfm
svn propset svn:eol-style native *.lpi *.pas *.lfm

Then commit the changes:

svn commit --message "Initial commit of the code"

Then when I do my own checkout I will get your files.

You can also try to google for: subversion tutorial

If you are using Windows, then install TortoiseSVN

Ok, I understand. It will be like a common folder with the current version, so it is not linked with the files folder of SouceForge that we can access through the the website, right ?

I have commited the version 1.1.
« Last Edit: February 08, 2011, 09:51:10 pm by circular »
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #24 on: February 09, 2011, 07:30:00 pm »
You can look at some of this for ideas about how to optimize it for Mac:

http://web.me.com/macpgmr/ObjP/MacXPlatform_Part8.html
I have worked on the toolbar issue. In the next version, it should be better.

I have tried my app on some Linux system, and the toolbox would not stay on top. Yet the property is well defined. Why ?
Conscience is the debugger of the mind

nisses

  • New member
  • *
  • Posts: 6
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #25 on: February 09, 2011, 11:31:47 pm »
I tried it on Windows 7 with 64-bits CPU, but it should work on 32-bits and on Linux.

Impressive.  BTW I tested it on 32bit XP SP3. Compiles and works fine in Laz 0.9.28.2.

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #26 on: February 10, 2011, 01:56:55 am »
Cool.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #27 on: February 10, 2011, 05:54:46 pm »
Here is a new version 1.3, with some improvements :

  • grayscale conversion
  • filter contour and custom blur
  • mac-friendly interface
  • swap colors
  • crosshair
  • selection rotation

I added new screenshots :
https://sourceforge.net/projects/lazpaint/

Phil, can you tell me if it renders correctly on Mac OS?
Conscience is the debugger of the mind

Leledumbo

  • Hero Member
  • *****
  • Posts: 8287
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #28 on: February 10, 2011, 06:37:19 pm »
Quote
Here is a new version 1.3, with some improvements
Damn, you move too fast. I haven't even got a chance to try 1.1 :P

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #29 on: February 10, 2011, 08:05:43 pm »
lol well in fact version 1.2 does not exist, it was just to make same version number for BGRABitmap and LazPaint  ;)
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018