Search found 53 matches
- Wed Sep 10, 2008 1:35 pm
- Forum: VCL
- Topic: Getting pixel values from axis label values
- Replies: 34
- Views: 34854
OK, maybe I replied too fast... The methods CalcPosPoint and CalcXPosValue do seem to work in that they allow me to redraw polygons in absoultuely the correct positions on different images. However, if you look at the axis positions values CalcPosPoint returns, it does not match the value on the x o...
- Tue Sep 02, 2008 5:15 pm
- Forum: VCL
- Topic: Getting pixel values from axis label values
- Replies: 34
- Views: 34854
- Mon Sep 01, 2008 3:32 pm
- Forum: VCL
- Topic: Getting pixel values from axis label values
- Replies: 34
- Views: 34854
There are 2 problems with the solution that you recommend. The first is that your solution returns the "integer" index of the X/Y pixel locations on the original axis when the Mouse Down event was generated. This index will not longer be valid on the next image that the uses generages...especially i...
- Fri Aug 29, 2008 8:22 pm
- Forum: VCL
- Topic: Getting pixel values from axis label values
- Replies: 34
- Views: 34854
Yes, I see that you are correct. I was looking at the series1.CalcPosValue example in your help file. When I call the example code you supplied, I did not get the right answer. I wonder if I did not save the axis value in the array X_Value correctly. Could you look at the end of the example code whe...
- Fri Aug 29, 2008 2:25 pm
- Forum: VCL
- Topic: Getting pixel values from axis label values
- Replies: 34
- Views: 34854
- Thu Aug 28, 2008 10:14 pm
- Forum: VCL
- Topic: Getting pixel values from axis label values
- Replies: 34
- Views: 34854
Getting pixel values from axis label values
I am trying to save the coordinates of a polygon that I marked on an image displayed on a TColorGrid so that I can redraw the polygon at a later time. My users save the polygon vertex values, and at a later date, draw a new image using a different target and want to redraw the saved polygon. Below i...
- Mon Mar 31, 2008 6:40 pm
- Forum: VCL
- Topic: Relating point clicked and axis
- Replies: 7
- Views: 9160
Very helpful...Thank you! I was being confused between pixel locations on the screen and x/z axis indices. This solved my problem. Now, looking at your code below, how do I translate the other way. Given the Series1.XValues anf Series1.YValues values, how do I calculate the pixel location X,Y that w...
- Fri Mar 28, 2008 4:34 pm
- Forum: VCL
- Topic: Relating point clicked and axis
- Replies: 7
- Views: 9160
I tried your fix and it does not properly place the mouse point above the correct row and column. However, when I try to zero out the cells inside the polygon, it stills seems to be flipped both horizontally and backwards. Is the X/Y numbering of the axis and the same as that reported back from the ...
- Fri Mar 28, 2008 1:27 pm
- Forum: VCL
- Topic: Relating point clicked and axis
- Replies: 7
- Views: 9160
- Thu Mar 27, 2008 6:43 pm
- Forum: VCL
- Topic: Relating point clicked and axis
- Replies: 7
- Views: 9160
Relating point clicked and axis
I am drawing polygons on the ColorGridSeries chart and am trying to understand the connection between the X/Y values obtained in the Mouse Down event and the X/Z values in the Chart1.Series.AddXYZ method. As I add data points to the plot using the AddXYZ method, I want to change the values of points...
- Wed Dec 05, 2007 2:32 pm
- Forum: VCL
- Topic: Rectangle tool
- Replies: 5
- Views: 7092
- Wed Dec 05, 2007 1:13 am
- Forum: VCL
- Topic: Rectangle tool
- Replies: 5
- Views: 7092
Thank you for your response. I guess I was not clear about what I was asking. I need to draw a shape, say a hexagon or an octogon...using something similar to the rectangle tool. Maybe I could give 6 points as the shape bounds and it would connect the points, drawing a 6 sided shape. My application ...
- Tue Nov 27, 2007 4:38 pm
- Forum: VCL
- Topic: Rectangle tool
- Replies: 5
- Views: 7092
Rectangle tool
The rectangle tool is great. Is there a way of drawing a similar shape with more than 4 sides? I need to be able to draw an "n" sided shape and know if a given point in the colorgridseries is inside the shape or outside.
Thnks in advance.
Thnks in advance.
- Tue Nov 27, 2007 4:34 pm
- Forum: VCL
- Topic: tVideoTool.GetCompressor error
- Replies: 10
- Views: 14335
- Tue Aug 07, 2007 3:50 pm
- Forum: VCL
- Topic: tVideoTool.GetCompressor error
- Replies: 10
- Views: 14335