Jump to content

Why does bounding box dimensions of a dx text differs from a dx rectangle ?


SparkzZ

Recommended Posts

... Wrong

In dxDrawRectangle you have x, y, width, height.

In dxDrawText you have x, y, final X and final Y.

final X = x + rectangleWidth

final Y = y + rectangleHeight

 

For example, in your code:

dxDrawRectangle > x=530 ; width=214

dxDrawText > x=530 ; finalX=744

 

You can see it, right? :-P I know it may be confusing at first.

_____

Sorry for the double-post but I can't edit my old message...

Edited by EstrategiaGTA
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...