Recent

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

circular

  • Hero Member
  • *****
  • Posts: 2983
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #840 on: September 05, 2019, 09:44:30 pm »
Nice drawing.  :)

Vector version is coming soon. It seems that all bugs are fixed. Now we are making the binaries.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 2983
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #841 on: September 06, 2019, 12:12:46 pm »
New version of LazPaint 7.0.5 (seems stable)
https://github.com/bgrabitmap/lazpaint/releases

This is an official release  :)
Conscience is the debugger of the mind

nouzi

  • Full Member
  • ***
  • Posts: 133
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #842 on: September 06, 2019, 12:48:31 pm »
Nice working
my english is  bad
Lazarus 2.0 free pascal 3.0.4
Lazarus trunk  free pascal trunk 
System : windows 7 64bit

circular

  • Hero Member
  • *****
  • Posts: 2983
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #843 on: September 07, 2019, 09:15:49 pm »
Thanx  :)
Conscience is the debugger of the mind

jeffrey1820

  • Newbie
  • Posts: 2
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #844 on: October 05, 2019, 01:21:33 am »
Please fix an issue with the linear gradients of svg, which seems to be not painted, but it's only a size issue.

The issue is in "TSVGElementWithGradient.CreateCanvasLinearGradient(...)" and this code...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p2.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
...should be...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x2,AUnit,w).value;  <- change here
    p2.y:= Units.ConvertHeight(g.y2,AUnit,h).value;  <- change here

After these changes the linear gradients will be painted as expected.

lainz

  • Hero Member
  • *****
  • Posts: 3228
    • Lainz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #845 on: October 05, 2019, 01:56:15 am »
Please fix an issue with the linear gradients of svg, which seems to be not painted, but it's only a size issue.

The issue is in "TSVGElementWithGradient.CreateCanvasLinearGradient(...)" and this code...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p2.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
...should be...
Code: [Select]
    p1.x:= Units.ConvertWidth(g.x1,AUnit,w).value;
    p1.y:= Units.ConvertHeight(g.y1,AUnit,h).value;
    p2.x:= Units.ConvertWidth(g.x2,AUnit,w).value;  <- change here
    p2.y:= Units.ConvertHeight(g.y2,AUnit,h).value;  <- change here

After these changes the linear gradients will be painted as expected.

Reported in GitHub
https://github.com/bgrabitmap/lazpaint/issues/56

circular

  • Hero Member
  • *****
  • Posts: 2983
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #846 on: October 14, 2019, 04:00:09 pm »
New version of LazPaint 7.0.7. This is a recommended update from 7.0.6 as it contains a significant amount of bug fixes.
https://github.com/bgrabitmap/lazpaint/releases

Bug fixes
fix crop layer with offsets/small layers
fix bug with duplicating vectorial layer
fix undo of merging duplicate layers
avoid bugs with vector layers in certain cases
fix layer visibility update
update inactive layers with undo/redo
fix bugs when actions or tools interact
fixed opacity bar when layer stack is zoomed
update screen when changing workspace color
fix shift colors shortcut

General
show context menu when right-clicking upper toolbar unused space
faster saving of LZP files
handles external changes in multiimage files (TIFF, GIF, ICO) more gracefully
entry to duplicate current frame of GIF or TIFF
merge vector layers with vector layers
merge vector layers with other layers by transforming them into a rectangular shape
in color window, triangle cursors are clickable

Edit shape tool
update toolbar when selecting shape
space key allowed when editing existing text shape
transform background fill of rectangular shapes (in particular after merging raster and vector layers)
right click to rotate/shear a rectangular shape
avoid shape distortion when copying between layers with different transform
allow to clear/copy the whole layer if it is a gradient or a rotate image with Delete or Ctrl-C
more permissive selection of shape (one can click a few pixels away)

Polygon tool
holding SHIFT (along with Insert or I key) inserts new point on the segment
close shape when clicking first point (when polygon or curve is open)
Conscience is the debugger of the mind