Recent

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

Fred vS

  • Hero Member
  • *****
  • Posts: 1982
    • StrumPract is the musicians best friend
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #990 on: October 03, 2020, 04:34:16 pm »
Hello.

Here result of LazPaint for win 32 and 64 (for Linux it is ok too).
I did compile it using lazpaint.prj and fpc 3.2.0.
Cool. I notice the text on the status bar hides the white bevel line. Does it solve that to add
Code: Pascal  [Select][+][-]
  1.     FStatusBar.Canvas.Brush.Style := bsClear;
on line 338 of umainformlayout.pas? (in procedure StatusBar_Paint inside the first if statement)
?

Hello.

Doing this:

Code: Pascal  [Select][+][-]
  1. procedure TMainFormLayout.StatusBar_Paint(Sender: TObject);
  2. var
  3.   colWidth, spacing, i, x: Integer;
  4. begin
  5.   if FStatusTextSplit.Count > 0 then
  6.   begin
  7.     FStatusBar.Canvas.Brush.Style := bsClear;
  8.    ...

Gives this (see picture):

Huh, do you know that fpc has now a fully working independent fpcres that will not oblige Unix users to use windres?
(And so remove all the problems when "lazpaint.res not found" appears in compilation).

 O:-)

Fre;D
I use Lazarus 2.0.6 32/64 and FPC 3.2.0 32/64 on Debian 10.2 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64 and Mac OS X Snow Leopard 32.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt, Carbon.

https://github.com/fredvs
https://gitlab.com/fredvs

lainz

  • Hero Member
  • *****
  • Posts: 3800
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #991 on: October 03, 2020, 04:37:14 pm »
@lainz
Hmmmm.... ok. What if you replace WriteLn by DebugLn on line 230 of UCommandLine?

EDIT: maybe it is not possible to do a hybrid program console/GUI on Windows with Lazarus

If I replace WriteLn with DebugLn it displays nothing, but it doesn't crash. No memory leaks.

Maybe you can do as some other windows application does, using the command --help shows a Dialog (ShowMessage).
https://lainz.github.io/
Download LazPaint https://lazpaint.github.io/
Download BGRABitmap and BGRAControls https://github.com/bgrabitmap

lainz

  • Hero Member
  • *****
  • Posts: 3800
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #992 on: October 03, 2020, 04:40:31 pm »
Another bug, this is something Windows only:

When listed in Default Programs (Windows 10 default image viewer) and also on right click > Open With... it displays 'lazpaint.exe' instead of 'LazPaint'. I think this has to do with unset values in the Project Options, version information.
https://lainz.github.io/
Download LazPaint https://lazpaint.github.io/
Download BGRABitmap and BGRAControls https://github.com/bgrabitmap

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #993 on: October 03, 2020, 04:46:00 pm »
Maybe you can do as some other windows application does, using the command --help shows a Dialog (ShowMessage).
Sure though that would be a big dialog. Probably would need to create a form with a memo in it. I guess I will do that.

I don't see really missing information in the project in version information.
EDIT: oh ok FileDescription is in fact the name of the application, not some long description. I have fixed that.
« Last Edit: October 03, 2020, 04:52:42 pm by circular »
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3800
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #994 on: October 03, 2020, 04:52:53 pm »
Maybe you can do as some other windows application does, using the command --help shows a Dialog (ShowMessage).
Sure though that would be a big dialog. Probably would need to create a form with a memo in it. I guess I will do that.

I don't see really missing information in the project in version information.

Ok.

I don't remember exactly which one of the information's is used to display. But for example is missing comments and file description, just put LazPaint on it.
https://lainz.github.io/
Download LazPaint https://lazpaint.github.io/
Download BGRABitmap and BGRAControls https://github.com/bgrabitmap

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #995 on: October 03, 2020, 05:39:47 pm »
Yep just did that on dev branch. I guess the thing that remain is the display bug (on Windows 10 only for now)
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #996 on: October 03, 2020, 05:41:21 pm »
Huh, do you know that fpc has now a fully working independent fpcres that will not oblige Unix users to use windres?
(And so remove all the problems when "lazpaint.res not found" appears in compilation).

 O:-)
Great news  :)
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #997 on: October 03, 2020, 06:50:48 pm »
I've installed a VM with Win 10 on MacOS to debug the display problem. Hopefully Cortana and Siri are not going to have fight with each other.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3800
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #998 on: October 03, 2020, 08:48:05 pm »
I've installed a VM with Win 10 on MacOS to debug the display problem. Hopefully Cortana and Siri are not going to have fight with each other.

They don't fight, they say things off screen of each other.
https://lainz.github.io/
Download LazPaint https://lazpaint.github.io/
Download BGRABitmap and BGRAControls https://github.com/bgrabitmap

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #999 on: October 03, 2020, 09:07:54 pm »
They don't fight, they say things off screen of each other.
:D
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1000 on: October 07, 2020, 06:15:36 pm »
New version of LazPaint 7.1.4
https://github.com/bgrabitmap/lazpaint/releases

This version fixes some bugs, improve a bit on some tools to be more complete. It is optimized for MacOS with Retina display and also tools are now drawn outside of the picture area, so you can see if you drag the object outside of the canvas.

Progressive option of magic wands now works: the selection mask is a gradient when the color diverges from the starting color. Progressive option can be disabled from the toolbar.

The text tool is optimized to avoid slowdowns when typing many lines of text. The multi selection doesn't have hit boxes anymore, you need to click on the points to move it. This allows to select objects that are already within the selection box but not yet selected.

Scripts can now be translated using dialog.translate_text and dialog.select_translation functions. The first will find a translation within LazPaint and the other will select the translation from dictionaries provided in parameters by the script.

  * add --help command line
  * fix potential crashes
  * minor interface fixes
  * fix outline fill update
  * catch loading errors of layer originals
  * macOS: fix multiselection
  * macOS: handle retina display
  * macOS: optimize tools rendering
  * macOS: remove fullscreen menu (can be done with OS window menu)
  * tools: draw editor outside of image
  * choose color: display target name, highlight fill preview
  * palette: using CTRL to select gradient colors
  * raster selection: fix update area
  * clone tool: don't exit when changing layer
  * clone tool: shift-click to clone from flattened image
  * hand tool / edit shape tool: select non empty layer with shift-click
  * magic wand: implement progressive option
  * deformation grid: fix bug when changing grid size
  * text tool: optimize multiline text
  * print: show message and count
  * print: don't print empty image
  * curve adjustments: keep within limits when adding points
  * curve adjustments: fix toolbar position
  * gradient: don't link when duplicating layer
  * multiselection: remove hitboxes to allow selecting within
  * refactoring of debian package
  * translations of scripts

Binaries are provided for Windows 32 and 64, Linux 32 and 64 and MacOS 64. If you can and wish to provide another platform, please let me know.
Conscience is the debugger of the mind

OkobaPatino

  • Full Member
  • ***
  • Posts: 165
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1001 on: October 07, 2020, 07:56:26 pm »
Congratulations on the new version, good job.

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1002 on: October 08, 2020, 02:14:32 pm »
Thanks
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3800
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1003 on: October 10, 2020, 02:48:52 pm »
Made binary for macOS 32 bit. Sent you the file. But I can't make the dmg, maybe you can create it on macOS 64, I think there will be no difference. When done I can test it.
https://lainz.github.io/
Download LazPaint https://lazpaint.github.io/
Download BGRABitmap and BGRAControls https://github.com/bgrabitmap

circular

  • Hero Member
  • *****
  • Posts: 3556
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1004 on: October 10, 2020, 03:34:50 pm »
Thanks. Just to check, are those made with the master branches? I have changed some things in the dev branches of BGRABitmap, BGRAControls and LazPaint but that's for next releases.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018