Recent

Author Topic: BGRABitmap - layers  (Read 32537 times)

lainz

  • Guest
Re: BGRABitmap - layers
« Reply #30 on: September 16, 2012, 07:40:07 pm »
Ok. Well in Adobe Flash and Illustrator it can be applied for each layer, it's a property.

PD: Attached there is an example, similar to the css3 site one.
« Last Edit: September 16, 2012, 07:56:49 pm by lainz »

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap - layers
« Reply #31 on: September 16, 2012, 11:12:17 pm »
I understand. The layer would have properties do define where the 4 limits are, and a rectangle where to draw the resulting image.

But i'd rather do it as a filter that produces the content of the layer, because TBGRALayeredBitmap, with just blending modes, can be stored and loaded from an OpenRaster file. So if I stick to simple layer operations, there will be more interoperability. If I add special features, then I will need to create a specific image format for LazPaint. I was thinking about it, but well, it's not necessary in fact, and it would be yet another layered bitmap format.

I've added some little things to my OpenRaster format, like more blending modes, and gamma correction option. Gamma correction is not a big issue, and custom blending modes, well, anyway, it is not very clear where to stop with blending modes.

One thing that could be added to, is a reference to another image to define a layer. Some layer would be the copy of some external layered bitmap. Of course, the flattened image of the external file would be stored inside the layered image, so that it can be opened without that external file. But it would be updated if necessary. There may be circular references to check, but it would be an easy way to implement complex structures, instead of grouping layers inside one file.
Conscience is the debugger of the mind

lainz

  • Guest
Re: BGRABitmap - layers
« Reply #32 on: September 17, 2012, 12:52:20 am »
As you wish =)

PD: You need an avatar.

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap - layers
« Reply #33 on: September 17, 2012, 10:52:00 am »
Here it is  :)
Conscience is the debugger of the mind

lainz

  • Guest
Re: BGRABitmap - layers
« Reply #34 on: September 18, 2012, 04:57:05 am »
Nice, I need to update my avatar too.

carlosmoura

  • Newbie
  • Posts: 4
Re: BGRABitmap - layers
« Reply #35 on: November 10, 2022, 10:11:33 pm »
Here is a test project for playing with layered bitmap files (you need to use lastest svn) :
thank you very useful to me. Lazarus 2.0.12 (2022)

carlosmoura

  • Newbie
  • Posts: 4
Re: BGRABitmap - layers
« Reply #36 on: November 10, 2022, 10:12:46 pm »
thank you very useful to me. Lazarus 2.0.12 (2022)

circular

  • Hero Member
  • *****
  • Posts: 4196
    • Personal webpage
Re: BGRABitmap - layers
« Reply #37 on: November 11, 2022, 11:15:29 am »
You're welcome.

Layers have been implemented a long time ago, so for sure now you would have a recent version enough.
Conscience is the debugger of the mind

 

TinyPortal © 2005-2018