Recent

Author Topic: TImageViewer or equivalent  (Read 2207 times)

Dzandaa

  • Hero Member
  • *****
  • Posts: 549
  • From C# to Lazarus
TImageViewer or equivalent
« on: April 26, 2022, 04:28:42 pm »
Hi everybody,

Working with Lazarus Pascal 2.012 FPC 2.3.0 on Windows, Linux and MacOS

I am looking for a control or code for zoom and pan a BGRA image.
An equivalent to Delphi TImageViewer.

Thank you.

Regards,
Dzandaa

AlexTP

  • Hero Member
  • *****
  • Posts: 2715
    • UVviewsoft
Re: TImageViewer or equivalent
« Reply #1 on: April 26, 2022, 04:58:07 pm »

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: TImageViewer or equivalent
« Reply #2 on: April 26, 2022, 05:09:04 pm »
Hi!

For your needs there is the component

BGRAImageManipulation

In the tab BGRA Controls.

Winni

Dzandaa

  • Hero Member
  • *****
  • Posts: 549
  • From C# to Lazarus
Re: TImageViewer or equivalent
« Reply #3 on: April 27, 2022, 04:17:24 pm »
Hi,

BGRAImageManipulation is not really what I want, thank you anyway.

I already tested ATImageBox,
It's close to what I need, but I had some refreshing problems panning with the mouse
when zoom is out (see attachment).


I have a TBGRABitmap called Picture, and for the moment, I show it on a TImage without pan and zoom.
Regards,
Dzandaa

winni

  • Hero Member
  • *****
  • Posts: 3197
Re: TImageViewer or equivalent
« Reply #4 on: April 27, 2022, 10:15:11 pm »
Hi!

The BGRAbitmap has a lot of features like

* zoom
* rotate
* GetPart

So it's just some lines of code.

Winni

Dzandaa

  • Hero Member
  • *****
  • Posts: 549
  • From C# to Lazarus
Re: TImageViewer or equivalent
« Reply #5 on: April 28, 2022, 10:23:20 am »
Hi,

I know BGRA has a lot of features and I've been using it for quite some time

What I'm looking to find out is if there is already a tool that allows you to do Pan and Zoom without rewriting all the code.

What most closely resembles what I'm looking for is ATImageBox.

Regards,
Dzandaa

 

TinyPortal © 2005-2018