Recent

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

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #105 on: February 27, 2011, 03:08:30 pm »
Ok, so I've published a new version (2.1) with just two changes:
- deactivated custom cursors on gtk so that it's directly runnable on ubuntu
- added a repeat image feature, usefull when working with textures

https://sourceforge.net/projects/lazpaint/files/lazpaint/

Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #106 on: February 28, 2011, 06:55:15 pm »
I found how to deal with cursors. In fact, using "ico" format is not the right way  :'(

I've updated on subversion.
Conscience is the debugger of the mind

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 251
    • Fresh sound.
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #107 on: February 28, 2011, 08:48:40 pm »
Sorry, the latest changes break compilation on win32

I get the following message when trying to compile.

windres: can't open file `lazpaint.manifest': No such file or directory
lazpaint.lpr(30,1) Error: Error while compiling resources
lazpaint.lpr(30,1) Fatal: There were 1 errors compiling module, stopping
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #108 on: February 28, 2011, 09:08:01 pm »
Strange. Here the manifest is automatically generated. It's just to active themes on XP. What if you do a full compilation ?

Note : i've uploaded again the manifest.
« Last Edit: February 28, 2011, 09:09:35 pm by circular »
Conscience is the debugger of the mind

lainz

  • Guest
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #109 on: February 28, 2011, 10:03:12 pm »
Strange. Here the manifest is automatically generated. It's just to active themes on XP. What if you do a full compilation ?

Note : i've uploaded again the manifest.

you can add to bgrabitmap or lazpaint some of those gradients? :
http://lazarus.freepascal.org/index.php/topic,12145.0.html

Double Gradient - nGradient
http://wiki.lazarus.freepascal.org/Double_Gradient

Gradient Filler
http://wiki.lazarus.freepascal.org/Gradient_Filler
« Last Edit: February 28, 2011, 10:15:41 pm by lainz »

DelphiFreak

  • Sr. Member
  • ****
  • Posts: 251
    • Fresh sound.
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #110 on: February 28, 2011, 10:03:22 pm »
Ok, now it compiles again. Thank you.

I have added a patch with two improvements:

A) it adds command line support to LazPaint.

Example:
lazpaint <INPUTFILENAME> <FILTERNAME> <OUTPUTFILENAME>

lazpaint "c:\pictures\mypicture1.jpg" pfContour "c:\pictures\newpicture.jpg"

B) reduced the number of Global-Dialogs. Some Dialogs are created only if they are really needed and not in general at application startup.
Linux Mint 19.1, Lazarus 2.0, Windows 7&10, Delphi 7, Delphi 10.3 Rio

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #111 on: March 01, 2011, 01:43:24 am »
you can add to bgrabitmap or lazpaint some of those gradients? :
http://lazarus.freepascal.org/index.php/topic,12145.0.html

Double Gradient - nGradient
http://wiki.lazarus.freepascal.org/Double_Gradient

Gradient Filler
http://wiki.lazarus.freepascal.org/Gradient_Filler

The procedure GradientFill that makes gradients (linear, diamond, radial) in a bounding rectangle. I guess you can combine multiple calls to make those gradients. If you write a procedure for this, I can add it easily.

DelphiFreak i've taken your patch into account.
Conscience is the debugger of the mind

lainz

  • Guest
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #112 on: March 01, 2011, 01:50:34 am »
you can add to bgrabitmap or lazpaint some of those gradients? :
http://lazarus.freepascal.org/index.php/topic,12145.0.html

Double Gradient - nGradient
http://wiki.lazarus.freepascal.org/Double_Gradient

Gradient Filler
http://wiki.lazarus.freepascal.org/Gradient_Filler

The procedure GradientFill that makes gradients (linear, diamond, radial) in a bounding rectangle. I guess you can combine multiple calls to make those gradients. If you write a procedure for this, I can add it easily.

DelphiFreak i've taken your patch into account.

talk with eny
http://lazarus.freepascal.org/index.php?action=profile;u=39446

the author of Gradient Filler, I only did Double Gradient  ::)

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #113 on: March 01, 2011, 02:42:02 am »
Here is a new version (2.2) with :
-magicwand (selection)
-polygonal and spline selection
-command line (see http://wiki.lazarus.freepascal.org/LazPaint )
-fewer forms created at startup
-more config saved (for ex: custom blur remembers last mask)
-cursors on ubuntu

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

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #114 on: March 01, 2011, 11:30:11 am »
I noticed that Graphics32 have a LGPL implementation of direct drawing on the canvas. It may be worth trying to copy these Canvas drawing methods into BGRABitmap.

Until now, BGRABitmap is fast on Windows, but slower on other platforms because it goes through the creation of a bitmap handle before drawing.
Conscience is the debugger of the mind

fabienwang

  • Sr. Member
  • ****
  • Posts: 449
  • Lazarus is the best
    • My blog
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #115 on: March 01, 2011, 01:18:31 pm »
-Add options for default Size image
-Increase Undo max number to 100 (at least).
-Add shortcuts for color & tool window to show/hide
-Add shortcuts for Zooming in/out on the picture Ctrl+MouseWheel

Or better, add an Options window where users can customize
such options.

Edit:
-Save options like Opacity/Light & Foreground and Background colors
« Last Edit: March 01, 2011, 01:21:03 pm by FabienWang »
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #116 on: March 01, 2011, 04:29:57 pm »
-Add options for default Size image
It's already the case.

Quote
-Increase Undo max number to 100 (at least).
Well, with compression, it could be ok.

Quote
-Add shortcuts for color & tool window to show/hide
Ok.

Quote
-Add shortcuts for Zooming in/out on the picture Ctrl+MouseWheel
Ok. Simple MouseWheel to zoom in and out.

Quote
Edit: -Save options like Opacity/Light & Foreground and Background colors
Ok.

I've found how to create a DIB section in gtk in Graphics32 library, and I applied it to BGRABitmap. So it should be faster on Ubuntu.

It's updated on subversion.
Conscience is the debugger of the mind

Leledumbo

  • Hero Member
  • *****
  • Posts: 8294
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #117 on: March 01, 2011, 06:48:53 pm »
Add support for saving forms' last position, size, and window state before exiting (that would be easy since you already use ini files).

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #118 on: March 01, 2011, 08:29:24 pm »
I wrote about LazPaint in my blog and some people really liked it, but they wish to have a binary package (in Linux and Windows) because they do not have FPC and Lazarus.

circular

  • Hero Member
  • *****
  • Posts: 3648
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #119 on: March 01, 2011, 09:24:14 pm »
Add support for saving forms' last position, size, and window state before exiting (that would be easy since you already use ini files).
Ok.

I wrote about LazPaint in my blog and some people really liked it, but they wish to have a binary package (in Linux and Windows) because they do not have FPC and Lazarus.
Well I can only make Win64 files by myself.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018