Rat32 Posted February 12, 2017 Share Posted February 12, 2017 Hello. DxDrawText function have other arguments than dxDrawImage or dxDrawRectangle. In text, X and Y is left top corner of the dx. I have to math this to X and Y and width and height like rectangle or image. Link to comment
NeXuS™ Posted February 12, 2017 Share Posted February 12, 2017 Hey Tasumi, Can you explain a bit better what you want to do? 1 Link to comment
Addlibs Posted February 12, 2017 Share Posted February 12, 2017 (edited) width = endX - posX height = endY - posY endX = posX + width endY = posY + height -- where -- posX and posY refer to the top-left coordinates, and -- endX and endY refer to the bottom-right coordinates -- as passed into dxDrawText. Edited February 12, 2017 by MrTasty 1 Link to comment
Rat32 Posted February 13, 2017 Author Share Posted February 13, 2017 Thank you MrTasty :). Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now