Working with image as principal item
Posted: Thu Aug 04, 2016 4:29 pm
I'm testing an eval copy of T-Chart .NET, trying to demonstrate proof of concept and suitability of use for our specialized applications. I'm using VS2015, Framework 4.6, C# Winforms. The installation and toolbox interfacing worked OK.
This application uses images as the principal items of interest. I want to do the following things while working with an image. Please tell me if the following tasks are feasible, and HOW to get me started doing this with explicit code samples.
I want to:
1. Load an image into a T-Chart component. Currently, the only way I see to do that is as a background image, which doesn't seem to provide the options I may require out of the box. This is the first place I'll need your help.
2. Scale the image in the T-Chart panel to fit by width, extending vertically as much as necessary to keep the original aspect ratio of the image intact. I may want to change the scaling by programmatically zooming, but always maintaining the original aspect ratio. I may also wish to scroll using visible scroll bars, along both axes as desired. I suspect that either some kind of data or axes definitions will be necessary to cause these things to work, just loading an image as a background image provides no obvious methods of this kind of manipulation.
3. Click on the image at any point, and have T-Chart draw a horizontal line with attributes of my choosing (color and width) at the vertical position of the click, over the image and annotate that line with text. That line needs to be created in such a way that it tracks with the T-Chart canvas position and needs to maintain that relative position as the image is zoomed or scrolled. I need to be able to compute the image pixel row position from that click point.
If you can confirm that these actions can be done, please provide any clues as to how to get started doing them so that I can complete my evaluation of the suitability of T-Chart for our specialized use.
Thanks.
-- Mike R.
This application uses images as the principal items of interest. I want to do the following things while working with an image. Please tell me if the following tasks are feasible, and HOW to get me started doing this with explicit code samples.
I want to:
1. Load an image into a T-Chart component. Currently, the only way I see to do that is as a background image, which doesn't seem to provide the options I may require out of the box. This is the first place I'll need your help.
2. Scale the image in the T-Chart panel to fit by width, extending vertically as much as necessary to keep the original aspect ratio of the image intact. I may want to change the scaling by programmatically zooming, but always maintaining the original aspect ratio. I may also wish to scroll using visible scroll bars, along both axes as desired. I suspect that either some kind of data or axes definitions will be necessary to cause these things to work, just loading an image as a background image provides no obvious methods of this kind of manipulation.
3. Click on the image at any point, and have T-Chart draw a horizontal line with attributes of my choosing (color and width) at the vertical position of the click, over the image and annotate that line with text. That line needs to be created in such a way that it tracks with the T-Chart canvas position and needs to maintain that relative position as the image is zoomed or scrolled. I need to be able to compute the image pixel row position from that click point.
If you can confirm that these actions can be done, please provide any clues as to how to get started doing them so that I can complete my evaluation of the suitability of T-Chart for our specialized use.
Thanks.
-- Mike R.