Recent

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

j0x

  • Full Member
  • ***
  • Posts: 126
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #465 on: February 21, 2013, 11:04:30 am »
@j0x:

well I can't do anything with that, there's no debug info here other than pure cpu state. here is what I was talking about :

i think i got it this time here it is screenshots below and the compiled version you given me via PM still having the error of Access Violation when i use the Text tool
http://i.imgur.com/LoDcZUx.png
http://i.imgur.com/2gImE3s.png
« Last Edit: February 21, 2013, 11:06:17 am by j0x »

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #466 on: February 21, 2013, 04:51:17 pm »
Quote
to me its working fine it goes like
Checked: layers visible
Unchecked: layers invisible
I'll look at the code I have. Btw, the source I have is of r505. Does it match with this 5.1 we're talking about?

airpas

  • Full Member
  • ***
  • Posts: 179
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #467 on: February 21, 2013, 05:23:41 pm »
are you going to do some optimization ? . because its terribly slow compared with other painting software
i think its because of the compiler !!! . just thought

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #468 on: February 21, 2013, 10:23:09 pm »
@j0x:

well I can't do anything with that, there's no debug info here other than pure cpu state. here is what I was talking about :

i think i got it this time here it is screenshots below and the compiled version you given me via PM still having the error of Access Violation when i use the Text tool
http://i.imgur.com/LoDcZUx.png
http://i.imgur.com/2gImE3s.png
Thanks.

Try adding at line 235 those lines :
Code: [Select]
  if fx.TextMask = nil then
  begin
    fx.Free;
    FxFont.Free;
    exit;
  end;
(before alphaMax := 0 in BGRATextFX)

EDIT: What is the call stack when this bug happens ? (View > Debug Window > Call Stack, CTRL-ALT-S)
« Last Edit: February 22, 2013, 01:22:01 am by circular »
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #469 on: February 21, 2013, 10:25:39 pm »
are you going to do some optimization ? . because its terribly slow compared with other painting software
i think its because of the compiler !!! . just thought
I would like to do some optimizations later, but first I would like to make it work.

By the way, everything is not slow, that's not true. But some things are. What precisely are you thinking about?
Conscience is the debugger of the mind

lainz

  • Guest
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #470 on: February 22, 2013, 12:12:48 am »
maybe it is slow as image viewer?

I can load 3000x3000 px images with Picasa really fast, also with the Windows image viewer. And takes really a lot of seconds with LazPaint. Why? Simple. Because they don't load the bitmap fully (try loading a big picture and quickly zooming in Picasa, you'll see what I say), they load a part of the bitmap, usually less than 1000x1000 px (or less), a fast read, something similar that cell phones do: http://developer.android.com/training/displaying-bitmaps/load-bitmap.html

of course that's for image viewing, not editing.. (I think)

I recently downloaded Gimp 2, I need to compare both programs speed in similar situations.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #471 on: February 22, 2013, 12:57:56 am »
Basically image loading relies on FreePascal image loading, which can be slow.
« Last Edit: February 22, 2013, 01:22:19 am by circular »
Conscience is the debugger of the mind

lainz

  • Guest
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #472 on: February 22, 2013, 03:19:45 am »
Also seems hard to implement a way to load from png / jpg / bmp directly to BGRABitmap, I've reading the 'most simple' that's bmp and is a headache :)

j0x

  • Full Member
  • ***
  • Posts: 126
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #473 on: February 22, 2013, 07:41:47 am »
Try adding at line 235 those lines :
Code: [Select]
  if fx.TextMask = nil then
  begin
    fx.Free;
    FxFont.Free;
    exit;
  end;
(before alphaMax := 0 in BGRATextFX)

it works! the the text tool has no Access Violation error now

EDIT: What is the call stack when this bug happens ? (View > Debug Window > Call Stack, CTRL-ALT-S)

here it is and screenshot on attachment http://pastebin.com/raw.php?i=31tYqE20

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #474 on: February 22, 2013, 09:26:01 am »
Ok I understand why this happens.

So it will be 5.1 with new BGRABitmap version (6.9.1). Thanks to all.

Can someone make some Linux version ?
https://sourceforge.net/projects/lazpaint/files/bin/
« Last Edit: February 22, 2013, 09:57:05 am by circular »
Conscience is the debugger of the mind

airpas

  • Full Member
  • ***
  • Posts: 179
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #475 on: February 22, 2013, 03:24:28 pm »
i just download lazpaint5.1_setup_win32 from SF and its really faster than my compiled one from source code !!!!
so have you add some options to the compiler ?







circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #476 on: February 22, 2013, 03:30:13 pm »
Just usual optimizations : level 3, register and no debug info
Conscience is the debugger of the mind

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #477 on: February 22, 2013, 06:15:34 pm »
Quote
I'll look at the code I have. Btw, the source I have is of r505. Does it match with this 5.1 we're talking about?
Seems like Qt specific issue (recompile with GTK2 and everything works as expected), though I have no idea which code causes the bug in my case.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #478 on: February 22, 2013, 07:49:16 pm »
Here is a new version LazPaint 5.2 with minors fixes :
- can save OpenRaster files
- refresh screen fixes on loading

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

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #479 on: February 23, 2013, 11:34:53 am »
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018