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 » Look and Chameleon Technology » BUG? ImageOp's not HotSpot aware
Re: BUG? ImageOp's not HotSpot aware [message #31832 is a reply to message #30357] Wed, 30 March 2011 10:58 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
swapping the hotspots when mirroring is not so good, since it generates a 'negative' Rectangle.

i'd vote for simply keep the hotspots where they are, since it's actually a 'visual' mirroring, not a functional.

color mask is same..
so here are the changes left
@@ -138,6 +138,8 @@ Image ColorMask(const Image& src, Color key)
 			*t++ = *s;
 		s++;
 	}
+	ib.SetHotSpot(src.GetHotSpot());
+	ib.Set2ndSpot(src.Get2ndSpot());
 	return ib;
 }
 
@@ -586,6 +588,8 @@ Image MirrorHorz(const Image& img)
 			e--;
 		}
 	}
+	ib.SetHotSpot(img.GetHotSpot());
+	ib.Set2ndSpot(img.Get2ndSpot());
 	return ib;
 }
 
@@ -604,6 +608,8 @@ Image MirrorVert(const Image& img)
 			e++;
 		}
 	}
+	ib.SetHotSpot(img.GetHotSpot());
+	ib.Set2ndSpot(img.Get2ndSpot());
 	return ib;
 }
 
 
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: HotSpots usage HOWTO
Next Topic: Appearance problem in TabCtrl
Goto Forum:
  


Current Time: Sat May 18 02:25:28 CEST 2024

Total time taken to generate the page: 0.02749 seconds