Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Fri Jul 18 03:59:55 CEST 2025

Total time taken to generate the page: 0.04162 seconds