Recent

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

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #330 on: October 01, 2011, 09:10:55 pm »
Hello people, here is yet another version 4.6 with :
- phong shaded shapes tool (very beautiful)
- cut'n'paste between instances of LazPaint keeps transparency
- some minor fixes

It needs yet another version of BGRABitmap (4.9).

Source code available here :
http://sourceforge.net/projects/lazpaint/files/src/
« Last Edit: October 01, 2011, 09:28:16 pm by circular »
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #331 on: October 03, 2011, 12:09:10 am »
I've published compiled version for Windows (installer and portable zip).

Can someone make Linux executables ? Linux done.
« Last Edit: October 06, 2011, 10:31:40 pm by circular »
Conscience is the debugger of the mind

mymas

  • Newbie
  • Posts: 3
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #332 on: October 03, 2011, 02:34:54 am »
http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips
https://gist.github.com/119f090146b245c44046

Hello. I try to build lazpaint4.6 in osx.
However $open lazpaint.app is not work, (Error: Unknown command : psn_0_5145832)
It's console launch is works well.
Maybe phong tooltip not appear.
Anyway thanks for new release.

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #333 on: October 03, 2011, 09:06:47 am »
Thanks. You're right about phong tooltip. It's fixed on subversion.

About unknown psn command, it reminds me of something. I thought it was fixed. If this error comes up inside Lazarus, you can try to debug it step by step (run the program with F7), if you have some time for this.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #334 on: October 07, 2011, 02:39:00 pm »
What's new :
- Linux binaries version 4.6
- Optimisation of action state update

The action state, i.e, if undo can be applied etc. was using much CPU time with big images. I've optimized it so that images are checked only when necessary. Now the CPU usage, when not using the program is zero.
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 #335 on: October 07, 2011, 03:15:01 pm »
phong shaded shapes <3

Nice one for the binaries mate :)
I'm using Arch Linux.
Known for: CPickSniff, OpenGrabby
Contributed to: LazPaint

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #336 on: October 07, 2011, 07:26:25 pm »
Hehe yes, so beautiful.

You mean "made"? Daniel did compile.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #337 on: October 22, 2011, 04:12:22 pm »
Hello people, i've updated LazPaint on subversion :

- undo after drawing : this avoids the lag when starting to draw with big images (4000x3000 for example). You can resample a smaller image to check this.

- ctrl to snap to pixels : when drawing with pen or drawing polygons, you can press Ctrl to snap to pixels. This is useful when working on small images.

- shift to swap colors for polygons : as a polygon can only start with the left button, pressing shift allows to swap colors

EDIT :
- just added some optimizations for drawing, useful when working with big bitmaps
« Last Edit: October 22, 2011, 07:49:44 pm by circular »
Conscience is the debugger of the mind

TurboRascal

  • Hero Member
  • *****
  • Posts: 672
  • "Good sysadmin. Bad programmer."™
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #338 on: October 26, 2011, 12:21:52 pm »
Hmm, it seems I've hit a bug...

I've installed the 4.6 release on 32-bit XP, and the SaveAs doesn't seem to function properly:
- When I edit a JPEG file, it saves it again as JPEG, no matter what format I chose from the list
- When I create a new file, it saves it as PNG regardless of the format I chose; in this case the same goes if I use Save instead of SaveAs...
Regards, ArNy the Turbo Rascal
-
"The secret is to give them what they need, not what they want." - Scotty, STTNG:Relics

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #339 on: October 26, 2011, 11:20:39 pm »
I cannot reproduce this bug. I'm using Windows 7.
Conscience is the debugger of the mind

j0x

  • Full Member
  • ***
  • Posts: 126
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #340 on: October 31, 2011, 02:52:56 am »
Hmm, it seems I've hit a bug...

I've installed the 4.6 release on 32-bit XP, and the SaveAs doesn't seem to function properly:
- When I edit a JPEG file, it saves it again as JPEG, no matter what format I chose from the list
- When I create a new file, it saves it as PNG regardless of the format I chose; in this case the same goes if I use Save instead of SaveAs...

yes i can confirm this bug too on windows xp 32-bit version

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #341 on: October 31, 2011, 11:06:05 am »
Maybe it is a bug of TSaveDialog on XP.
Conscience is the debugger of the mind

lainz

  • Guest
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #342 on: November 01, 2011, 07:21:16 pm »
@Circular

You can add some 'TSpinEdit' in 'Color' floating window, to set RGB and Alpha from numbers?
Or a 'ColorDialog' with an Alpha 'TSpinEdit'.

Other thing I need about the selection tool, if can be faster using only a dotted line (like in the grid), because that's really slow when I zoom to x128. BTW if isn't faster a dotted line, is a good option to see the content I've selected.

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #343 on: November 01, 2011, 10:34:20 pm »
@Circular

You can add some 'TSpinEdit' in 'Color' floating window, to set RGB and Alpha from numbers?
Or a 'ColorDialog' with an Alpha 'TSpinEdit'.
That's a good idea.

Quote
Other thing I need about the selection tool, if can be faster using only a dotted line (like in the grid), because that's really slow when I zoom to x128. BTW if isn't faster a dotted line, is a good option to see the content I've selected.
I don't understand. The zoom does not make it slower. It's only slow if you've got a big image.
Conscience is the debugger of the mind

lainz

  • Guest
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #344 on: November 02, 2011, 03:48:04 am »
Quote
I don't understand. The zoom does not make it slower. It's only slow if you've got a big image.

You're right, is not a problem of the selection tool. When I zoom also painting is slow, in any image resolution (48x48 or 1000x1000). Maybe because i have an old video card and my desktop res is 1920x1080. When I select or paint with zoom the image fills the screen, repainting that is slow on my pc.

 

TinyPortal © 2005-2018