Recent

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

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1005 on: October 10, 2020, 04:04:05 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.

Yep dev-branch, so I need to do the build again.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1006 on: October 10, 2020, 04:15:30 pm »
Ok. What error did you get when making the DMG file?
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 4449
    • https://lainz.github.io/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1007 on: October 10, 2020, 04:43:33 pm »
Well you've fixed it.  :) For the people reading the forum: it was that I ran the script drag and drop in the console, so the path was not set, relative path was wrong and can't find the resources.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1008 on: October 10, 2020, 04:44:34 pm »
Thanks for pointing that problem because fixing it is better as it was a bit dangerous for the scripts to do stuff in a random folder
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1009 on: October 19, 2020, 12:00:44 am »
New version of LazPaint 7.1.5
(recommended in particular for MacOS)
https://github.com/bgrabitmap/lazpaint/releases

  * image browser: can move to trash on MacOS
  * image browser: F5 to update file list
  * image browser: fix tab stops
  * macOS: retina scaling of icons, comboboxes and buttons
  * comboboxes: fix scaling and non responsive drop down
  * checkers: scaled according to DPI
  * file new: add icon to discard ratio
  * top toolbar: stretch switch color button to DPI
Conscience is the debugger of the mind

Lulu

  • Full Member
  • ***
  • Posts: 226
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1010 on: October 21, 2020, 09:17:24 am »
Hi Circular, thanks you for the new release.
I experiment some problem using gradient:

I have 2 layers, the first with a drawing and the second empty.
On the empty one, I would like to draw a linear gradient with color picked up from the first.
So, I select the first layer and with the color picker tool, LEFT CLICK to take the forward color and RIGHT CLICK to take the back color. All is right, the color are right selected in the top tool bar.
When I use RENDER GRADIENT tool on the second layer, the color aren't the previously selected ones.

Do I have missed something ?
wishing you a nice life

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1011 on: October 21, 2020, 01:35:20 pm »
Hi Lulu  :)

In version 7, the pen and the background can have different gradients. For example, you can set a gradient for the filling of a rectangle (back color) and a different one for the pen.

For the gradient tool, the gradient is specified in the back color. The pen color is not used in this case.

First way (copy/paste color definition):
- make sure the color window is displayed
- select the back color by clicking on its preview in the top toolbar
- using the color picker, for each color, pick it with right click and copy/paste its text definition into a text editor (for example #ff0000 for red)
- choose the gradient tool
- in the top toolbar, you have a preview of the gradient. Click on the left part to select the start color, paste the definition by right-clicking the text box and select Paste. Same with right part for end color.

Note: you cannot do Ctrl-V because that's for pasting images and shapes. That could be improved I guess, because if you are editing the color, you would rather want to paste text into it.

Second way (using palette to store colors)
- make sure the palette is displayed (on the right) and the color window as well
- select the back color by clicking on its preview in the top toolbar
- empty the palette to make it easier to find the colors (using palette menu button)
- using the color picker, for each color, pick it with right click and add it to the palette (top-left button of the color window)
- choose the gradient tool or any drawing tool
- do Ctrl-Left click in the palette to select start color and Ctrl-Right click to select end color

It feels like it could be simplified.
https://github.com/bgrabitmap/lazpaint/issues/207
« Last Edit: October 21, 2020, 01:44:39 pm by circular »
Conscience is the debugger of the mind

Lulu

  • Full Member
  • ***
  • Posts: 226
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1012 on: October 21, 2020, 06:06:42 pm »
I do it with the second way.
I don't knew the use of the two buttons in the color window. May be, add a hint on them will be more explicit for the user ?
Thanks for your help :)
wishing you a nice life

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1013 on: October 21, 2020, 06:28:45 pm »
You're welcome.  :)

Indeed, there was those hints but they disappeared. I have put them back on dev branch.

EDIT: I've applied the changes of issue #207 on the dev branch.
« Last Edit: October 21, 2020, 07:53:31 pm by circular »
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 1076
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1014 on: November 13, 2020, 10:16:58 am »
If it is not reported already, I came across to a newly introduced bug in LazPaint 7.1.5:
When I rotate and image to 90 degrees, the image is rotated, but the old image is also shown, until some action is performed with the image.


Also, it would be good if 180 degrees rotation was available in the menu, instead of having to do rotate 90 degrees twice.

Edit: I just found out that resizing the image to a smaller one leads to the same issue- both greater and smaller image are shown.
« Last Edit: November 13, 2020, 12:11:38 pm by CM630 »
Лазар 3,0 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1015 on: November 13, 2020, 12:35:42 pm »
Thanks CM360 for reporting it. I fixed it on dev.

I've added 180 degrees rotation by the way.  :)
Conscience is the debugger of the mind

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1016 on: November 17, 2020, 08:01:30 pm »
To day find this report in site web FOSS

https://itsfoss.com/lazpaint/
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

circular

  • Hero Member
  • *****
  • Posts: 4181
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1017 on: November 17, 2020, 10:27:36 pm »
Cool  :)

Always great to get some press coverage  :-*
Conscience is the debugger of the mind

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1018 on: November 18, 2020, 12:18:46 am »
Yes this good for lazpaint and Lazarus/FPC
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

nouzi

  • Sr. Member
  • ****
  • Posts: 296
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #1019 on: November 18, 2020, 03:55:54 pm »
Cool  :)

Always great to get some press coverage  :-*
to day see this video
https://www.youtube.com/watch?v=tGM8NOAoFwk
My English is  bad
Lazarus last version free pascal last version
Lazarus trunk  free pascal trunk 
System : Linux mint  64bit  Windows 7 64bit

 

TinyPortal © 2005-2018