Recent

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

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #165 on: March 22, 2011, 01:16:19 pm »
Yes, and it works. It's on subversion. But I wonder if I should check "Design and runtime package".

Now, only "Runtime package" is checked so it cannot be compiled into Lazarus. It is faster thus to update. But I do not know what happens if you want to use it with a component.
I don't know if exists another (better) way to share modules between components like design lazarus package. Maybe someone else could comment here about this. I see it like this: I'm downloading and installing BGRABitmap package like other components. Now I can add this package as requied in my package, so no one can install my package without installing BGRABitmap package first. I can use BGRABitmap units adding them to uses section but I do not have to know path to this units. This same with projects. You could then distribute lazpaint and bgrabitmap like separated projects by adding bgrabitmap package as requied in lazpaint project (project -> project inspector -> requied packages). With this way everyone can easily use power of BGRABitmap without downloading lazpaint. Or I am wrong...

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #166 on: March 22, 2011, 05:13:09 pm »
No, I understand what you mean, and I agree, but personnally I have trouble in compiling Lazarus. Maybe it's because I'm using Win64.

Lately, I've got trouble even when using runtime package only. It says that one unit is not used in another unit whereas it is used. And it says another error message.

I can't make it work, so maybe I will use directory linking (adding to search path) for LazPaint and testbgrafunc, but with a package file if someone want to compile it as a design package.
Conscience is the debugger of the mind

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #167 on: March 30, 2011, 12:03:37 am »
I have question. I crated component TBGRAImageList especialy for GTK alpha. I never tested it on Windows until today. On GTK it works perfect but on windows it seems like it draw some artifacts instead of alpha. See attached images. What I do wrong? Code:
Code: Pascal  [Select][+][-]
  1.   TBGRAImageList = class(TImageList)
  2.   private
  3.     { Private declarations }
  4.     FBGRA: TBGRABitmap;
  5.     FBmp: TBitmap;  
  6.  
  7. ..........
  8.  
  9. procedure TBGRAImageList.Draw(ACanvas: TCanvas; AX, AY, AIndex: Integer;
  10.   ADrawingStyle: TDrawingStyle; AImageType: TImageType;
  11.   ADrawEffect: TGraphicsDrawEffect);
  12. begin
  13.   //inherited; - We use TBGRABitmap drawing only
  14.  
  15.   // This is required part from TImageList.Draw
  16.   if (AIndex < 0) or (AIndex >= Count) then Exit;
  17.   ReferenceNeeded;
  18.  
  19.   // BGRA Drawing
  20.   GetBitmap(AIndex, FBmp, ADrawEffect); //getting image from image list
  21.   FBGRA.Assign(FBmp);
  22.   FBGRA.Draw(ACanvas, AX, AY, True);
  23. end;  
  24.  

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #168 on: March 30, 2011, 12:14:33 am »
Ehh I wrote to fast. Changing param Opaque to False solve problem on windows

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #169 on: March 30, 2011, 01:41:59 pm »
Ok.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #170 on: April 01, 2011, 06:21:22 pm »
Here a new version of LazPaint (2.9) with texture fill.

If you missed it, there is pen styles and line caps. You can combine both : draw a dotted line with a textured pen.

Now LazPaint has a dependency towards BGRABitmap as an installed package.
Conscience is the debugger of the mind

Leledumbo

  • Hero Member
  • *****
  • Posts: 8287
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #171 on: April 02, 2011, 12:41:54 am »
Do you need some help to provide binaries? I believe many image editor users aren't programmers and not familiar with programming environment, which is required to compile lazpaint. Most of the time they will lose interests in project providing no binaries. I can help building for i386-win32, x86_64-win64 (crossed from win32) and i386-linux.

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #172 on: April 02, 2011, 01:22:20 am »
Yes, I would be happy if you provided binaries. If you have a sourceforge account, you can tell me and I'll add you to the project.
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 #173 on: April 02, 2011, 12:26:42 pm »
I just updated the SVN,
i configured build modes (debug and release) (using stable release 0.9.30)
so if you compile in release you'll get a stripped and optimized binary directly.
(binaries will be out in debug/ or release/ folders) so the main project folder (which is the sources) will stay clean :).

@circular, i wanted to put binaries too, but only project admins can manage files.
so i let you do this or add me and leledumbo admins aswell :D
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 #174 on: April 02, 2011, 01:33:20 pm »
FabienWang, I checked "release technician" on your account. Does it allow you to upload files ?

I'm not sure how to make you admin and what it would change.

I'm still waiting for Leledumbo identifier on sourceforge.
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 #175 on: April 02, 2011, 01:42:33 pm »
FabienWang, I checked "release technician" on your account. Does it allow you to upload files ?
Nice it works. I didn't know there was a release technician profile :) Thanks
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 #176 on: April 02, 2011, 02:37:48 pm »
I just updated the SVN,
i configured build modes (debug and release) (using stable release 0.9.30)
so if you compile in release you'll get a stripped and optimized binary directly.
(binaries will be out in debug/ or release/ folders) so the main project folder (which is the sources) will stay clean :).
I tested it. Nice work, thanks.
Conscience is the debugger of the mind

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #177 on: April 02, 2011, 04:48:44 pm »
I've added some computed textures to LazPaint (wood, stone...)

It's now version 3.0, available as a zip file.
https://sourceforge.net/projects/lazpaint/files/
Conscience is the debugger of the mind

Leledumbo

  • Hero Member
  • *****
  • Posts: 8287
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #178 on: April 02, 2011, 06:26:30 pm »
Quote
If you have a sourceforge account, you can tell me and I'll add you to the project.
It's leledumbo, I've been registered for some years there, but it wasn't easy to manage files (must use svn client, no web interface). Is it easier now? Or how do you want me to give the binaries?

circular

  • Hero Member
  • *****
  • Posts: 3647
    • Personal webpage
Re: LazPaint (alpha-blending, antialiasing, filters)
« Reply #179 on: April 02, 2011, 08:24:07 pm »
Yes it's easier now, you can do it from a web browser. I'm giving you access to LazPaint... done. Can you give it a try and tell me if it's ok ?
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018