Author Topic: Which control for writing a image editor?  (Read 796 times)

knuckles

  • Full Member
  • ***
  • Posts: 128
Which control for writing a image editor?
« on: October 06, 2024, 09:48:15 am »
Hi, I need to write a image editor as part of my project.

I think GR32 may be what I need but don't know how I should get started (never really used it, and the documentation I could not see it give a basic overview of what control is suited best to what need).

TPaintBox32
TImage32
TImageView32 (Use this one?)
Also there is TBitmapLayer class?

I need to implement for example:

Load/Save (bitmap, png etc)
Layers
Effects (Brightness, Contrast, HUE etc)
Paint on the layers (opacity, different brushes, erase tool)
Select tools

But don't know where to begin, which control/class to use etc?

Thanks

cdbc

  • Hero Member
  • *****
  • Posts: 2932
    • http://www.cdbc.dk
Re: Which control for writing a image editor?
« Reply #1 on: October 06, 2024, 10:33:33 am »
Hi
Sounds like you need 'BGRABitmap' package available in 'OPM'.
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE6/QT6 -> FPC Release -> Lazarus Release &  FPC Main -> Lazarus Main

Dzandaa

  • Hero Member
  • *****
  • Posts: 557
  • From C# to Lazarus
Re: Which control for writing a image editor?
« Reply #2 on: October 06, 2024, 11:25:44 am »
Hi,

Yes, BGRABitmap is the best.

Here are some tutorials.

https://wiki.freepascal.org/BGRABitmap_tutorial

B->
Regards,
Dzandaa

 

TinyPortal © 2005-2018