Recent

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

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #630 on: August 23, 2014, 07:56:35 pm »
In the (+) button in the Image List window, when the dialog is open 'all supported types' is filled of the extensions in different cases. *.bmp, *.Bmp, etc..

That's for linux or something? because in Windows is not neccesary, there's no way to have files with the same extension and different case, all are filtered the same just putting *.bmp..

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #631 on: August 23, 2014, 11:14:18 pm »
Yes, well in fact, it is not necessary for them to be displayed as the filter text need not contain all the actual extensions. We were talking about it with Paskal if we needed to define those for Windows too. It may be useful if an EXT file system is plugged into Windows. But anyway it probably does not bother Windows. Simply we need not display them.

I had a look at the blog you created for LazPaint, that's really great, thanks alot!
http://lazpaint.blogspot.com/
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #632 on: August 27, 2014, 08:57:54 pm »
Ok!

What about 'rain' filter in LazPaint? The attached picture is available in bgracontrols\test\test_extra\rain (a nice rain animation).

Basically are vertical lines with different length and alpha values. Then I applied two filters: BlurMotion (to add a better vertical effect) and BlurRadial (to smooth a bit).

The code can be changed, for example, to rain in different angles and intensity. Also different colors will be a good idea.
« Last Edit: August 27, 2014, 08:59:53 pm by 007 »

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #633 on: August 28, 2014, 04:11:28 pm »
That's a good idea.  :)
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #634 on: August 31, 2014, 12:54:08 am »
There's a bug in the file open dialog

UMySlv:
Code: [Select]
line 360:      FData[j].modification := FileDateToDateTime(age);
"2107-15-31 is not a valid date specification"

Of course a file in my documents has wrong data but it shoud skip that or something.

How to do rain in lazpaint: open an image and add a new layer, then use filter noise 'grayscale' and motion blur (vertically and a value of 60'), then use a blend mode like HardLight, Overlay or Glow and that's all. If you duplicate the layer the effect will increase.
« Last Edit: August 31, 2014, 01:02:08 am by 007 »

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #635 on: August 31, 2014, 01:50:14 pm »
Thanks 007, it's fixed.

For the rain, I will add a more complete dialog box to do this effect.
Conscience is the debugger of the mind

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #636 on: August 31, 2014, 04:18:15 pm »
Thanks 007, it's fixed.

For the rain, I will add a more complete dialog box to do this effect.

Ok yeah!

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #637 on: September 02, 2014, 07:11:42 pm »
You have seen Sketch Guru - Handy Sketch Pad?
https://play.google.com/store/apps/details?id=com.doodlejoy.studio.sketcherguru&hl=es_419

It has an option
 "Movie" mode to playback sketch like a small film.

That show each pencil movement (is like a undo-redo list that's played, saved in a script file).

----
There's another bug in other file open dialog of 'Image List'.

I can't open any file stored in user Pictures folder. Always throw 'Error: File not found!'.

Remember that Pictures folder has a real path and a 'visual' path. One is, for example:

'C:\Users\User\Pictures'

And other is the translated, that's shown
'C:\Users\User\Mis imágenes'

(With the first two seems that there's no problem)

And other, shown when you acces the folder via explorer 'Library' shortcuts
'Bibliotecas\Imágenes'

No idea, because I can open files in 'Documents' Library folder with no problems, only the 'Pictures' Library folder has that.

CM630

  • Hero Member
  • *****
  • Posts: 922
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #638 on: September 04, 2014, 08:54:21 am »
There's another bug in other file open dialog of 'Image List'.
I can't open any file stored in user Pictures folder. Always throw 'Error: File not found!'.
Remember that Pictures folder has a real path and a 'visual' path. One is, for example:
'C:\Users\User\Pictures'
And other is the translated, that's shown
'C:\Users\User\Mis imágenes'
(With the first two seems that there's no problem)
And other, shown when you acces the folder via explorer 'Library' shortcuts
'Bibliotecas\Imágenes'
No idea, because I can open files in 'Documents' Library folder with no problems, only the 'Pictures' Library folder has that.
What is your OS?  I have no problem here  (WIN XP) , though there is another bug- trying to open a lnk file prevented filelist from loading.
Лазар 2,0,10; W10 or W7 64bit; FPC3,2,0; rev 63526

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #639 on: September 04, 2014, 06:45:00 pm »
Windows 7 x64

CM630

  • Hero Member
  • *****
  • Posts: 922
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #640 on: September 06, 2014, 12:05:36 pm »
For good or bad I have neither a PC with Win 7, nor a one which can run it.
When you try to add several files, do these files get added in the list?
Or you just just get the message and the imagelist stays empty?
Лазар 2,0,10; W10 or W7 64bit; FPC3,2,0; rev 63526

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #641 on: September 06, 2014, 08:44:42 pm »
I have Win7 but I don't have this problem. Maybe it is because my Windows is in English.
Conscience is the debugger of the mind

CM630

  • Hero Member
  • *****
  • Posts: 922
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #642 on: September 06, 2014, 10:15:17 pm »
I installed a LIP (language interface package) on one of the XP PCs, and still there is no problem :(
Yet, in WinXP there is a problem with the OpenFile dialog. No matter what filter is selected, LNK files are shown  >:(
« Last Edit: September 06, 2014, 10:22:30 pm by paskal »
Лазар 2,0,10; W10 or W7 64bit; FPC3,2,0; rev 63526

lainz

  • Hero Member
  • *****
  • Posts: 3926
  • Leandro Diaz
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #643 on: September 07, 2014, 05:23:57 am »
I found the problem: is not the folder, there are files with extension with uppercase like .PNG or .JPG. Strange!

How to solve: add lowercase to ext in this code (UFileExtensions.pas)

function HasExtensionOptions(AFilename: string; AOptions: TExtensionOptions): boolean;
var
  ext: string;
  i : integer;
begin
  ext := ExtractFileExt(AFilename);
  ext := lowercase(ext);
  if (ext<>'') and (ext[1]='.') then delete(ext,1,1);
  for i := 0 to high(PictureFileExtensions) do
  begin
    if pos(';'+ext+';', ';'+PictureFileExtensions.extensionsWithoutDot+';')<> 0 then
    begin
      if PictureFileExtensions.options * AOptions = AOptions then
      begin
        result := true;
        exit;
      end;
    end;
  end;
  result := false;
end;
« Last Edit: September 07, 2014, 05:30:45 am by 007 »

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #644 on: September 08, 2014, 07:42:25 pm »
Well spotted Lainz. It is fixed on subversion.

paskal, I tried to put a link in an image folder, but it never appeared in the image browser nor in the standard open dialog.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018