U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » RectTracker filled with black
Re: RectTracker filled with black [message #14224 is a reply to message #14220] Wed, 20 February 2008 14:13 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Quote:

Well I don't know how one could achieve that, since the only info you get is the final rect and the stating point, so not enough to determine if it is backwards or not.

This should do the trick:
Rect original = rect;
rect = tr.Track(original, ALIGN_NULL, ALIGN_NULL);
if (rect.left < original.left) Swap(rect.left, rect.right);
if (rect.top < original.top) Swap(rect.top, rect.bottom);

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I use RectTracker in a rubber-band like operation?
Next Topic: [Bug] Windows UI Refresh Missed.
Goto Forum:
  


Current Time: Wed Jul 01 01:26:42 GMT+2 2026

Total time taken to generate the page: 0.00836 seconds