Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Device Pixels Input / Application Pixels Input

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Device Pixels Input / Application Pixels Input

    Hi,

    Are the following functions input x based on Device Pixels / DPI ? What is "specified x-coordinate​" mean ?
    - ChartControl.GetSlotIndexByX (The Document Mentioned "specified x-coordinate")
    - ChartControl.GetTimeByX (The Document Mentioned "specified x-coordinate")​
    - ChartBars.GetBarIdxByX (The Document Mentioned "specified x-coordinate")​​

    Are the following functions output x based on Device Pixels / DPI​ ? What is "chart-canvas x-coordinate​" mean ?​
    - ChartControl.GetXByBarIndex (The Document Mentioned "chart-canvas x-coordinate")​
    - ChartControl.GetXByTime (The Document Mentioned "chart-canvas x-coordinate")​

    Thank You !

    #2
    Hello Curerious,

    Thank you for your inquiry.

    Both are referring to the same "X" - the x coordinate it's returning (or the one being supplied) is a specified point on the Chart Canvas.

    From the Help Guide:

    "The chart canvas represents the portion of a chart window on which objects can be painted (the area outlined in blue in the image below). The canvas area is measured by an x-axis and y-axis independent of the price and time-axis of the chart itself. When working with coordinates on a chart canvas, it is important to note that the origin point (coordinates 0,0) is in the top-left corner of the canvas, NOT the bottom-left. Moving down the canvas increases the y-coordinate, and moving the the right on the canvas increases the x-coordinate."

    Below is the help guide page on Working with Chart Object coordinates for further reading.

    Comment


      #3
      Hi Gaby

      Thanks for answering. I understand they are X coordinate from canvas, but there’s two types of coordinate system, one is device pixels and another is application pixels:



      So I am wondering if the above function I provided on question is based on device pixels or application pixels​?
      Last edited by Curerious; 04-25-2025, 06:51 AM.

      Comment


        #4
        Hello Curerious,

        Apologies, they are application pixels.

        Comment


          #5
          Thank you !

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          556 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          324 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          101 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          545 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          547 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X