Recent

Author Topic: Using TAChart to Pan/Zoom/Draw on an ordinary image file?  (Read 1123 times)

Grohlfer

  • New Member
  • *
  • Posts: 11
Using TAChart to Pan/Zoom/Draw on an ordinary image file?
« on: February 14, 2024, 08:33:44 pm »
As much as I work with TChar I can nothing but note what a great work it is!  :D
I find particularly useful the pan and zoom features. They are great!
Now I finished working with statistics and moved to a project that is intended to annotate objects in image files for machine learning purposes.
In this project we need to pick up some images, pan/zoom and mark (i.d. paint) parts of it, relating these parts to a particular category. Then, after all done, cut the image parts off and save each on a directory tree that reflects the category hierarchy tree.
I wonder if I there is a way I could use some TChart methods to show and manipulate (i.e. pan, zoom and draw) an ordinary image file.
This would cut my work by half... Does anyone know if it is possible, and how?
I tried to mess with TChart.Canvas, but to no avail  :(
Thanks!

CM630

  • Hero Member
  • *****
  • Posts: 1166
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Using TAChart to Pan/Zoom/Draw on an ordinary image file?
« Reply #1 on: June 09, 2024, 09:48:36 am »
You could draw each pixel into some kind of series.
Than you will be able to pan and zoom.
But I doubt that this would be usefull, I can say nothing about pruductivity.


I have drawn 5 million of points in TLineSeries in 32bit Lazarus, I could not do more, but I suppose the 64bit Lazarus would not have this limitation.
Лазар 3,4 32 bit (sometimes 64 bit); FPC3,2,2

 

TinyPortal © 2005-2018