Hi,

In firefox 2, I get co-ordinates in terms of pixel like this:
          nsPoint point = anImageFrame->GetOffsetTo(rootFrame);

          // Translate the coordinates from twips to pixels
          float t2p;
          nsPoint aResult;
          t2p = GetPresContext()->TwipsToPixels();
          aResult.x = NSTwipsToIntPixels(point.x, t2p);
          aResult.y = NSTwipsToIntPixels(point.y, t2p);

  But in firefox 3 code, I don't see a function NSTwipsToIntPixels.
Please tell me what should I do in Firefox 3 for the above code.

Thank you.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to