This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.
I would like to know how I can read out the image height in pixels relative to the screen.
I have an image set in the middle of the screen which has a width and height of 100%. With the setting Maintain aspect ratio.
I would like to know how I can know the current height in pixels?
As of now, we do not have such functionality where we can convert dp to px. We have an existing FTR for the same. Request to create a Zendesk ticket to get more updates on the FTR.
To achieve your requirement, you need to write the FFI/NFI.
The below code snippet helps you to convert dp to px and vice versa.
As of now, we do not have any example on that. Did my response help you? If yes, make sure you click [Select as Best] under the response to close out the post.