How to convert between graph value and pixel ?

Support for Rt-Tools 2D Components for CodeGear Delphi and C++ Builder

Moderator: Horst Reichert

How to convert between graph value and pixel ?

Postby benok » Fri Jul 16, 2010 4:25 am

Hi,

How to convert between graph value and position in pixel ?

I want to move Vertical Marker to the clicked point on the graph area(not on the point/line).

I searched web and found in previous version's manual,
there seems to be IntoToRealX/RealToIntX function.

Is there any alternative method in version 3 ?

Should I buy professional version to achieve this ?
benok
 
Posts: 2
Joined: Fri Jul 16, 2010 3:56 am

Re: How to convert between graph value and pixel ?

Postby benok » Fri Jul 16, 2010 6:57 am

benok wrote:I searched web and found in previous version's manual,
there seems to be IntoToRealX/RealToIntX function.

Is there any alternative method in version 3 ?


I found TRtAxis.WorldToNumber from Markers sample.
# I couldn't find with 'pixel' keyword from Manual. ;)

Thanks.
benok
 
Posts: 2
Joined: Fri Jul 16, 2010 3:56 am

Re: How to convert between graph value and pixel ?

Postby Horst Reichert » Fri Jul 16, 2010 5:00 pm

benok wrote:
benok wrote:I searched web and found in previous version's manual,
there seems to be IntoToRealX/RealToIntX function.

Is there any alternative method in version 3 ?


I found TRtAxis.WorldToNumber from Markers sample.
# I couldn't find with 'pixel' keyword from Manual. ;)

Thanks.

Thanks fo the hint, I will include with the help of the next update.

Regards Horst
Horst Reichert
 
Posts: 282
Joined: Fri Apr 15, 2005 9:50 am


Return to Rt-Tools 2D for CodeGear VCL Version 3

Who is online

Users browsing this forum: No registered users and 1 guest

cron