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 » image of cursor
Re: image of cursor [message #6168 is a reply to message #6124] Wed, 01 November 2006 13:07 Go to previous message
James Thomas is currently offline  James Thomas
Messages: 26
Registered: June 2006
Promising Member
Thanks, that was the problem. For some reason all my Images have been loaded with hotspots at (0,-cy), but I have no idea why.

I think I missed this because the Image class doesn't have a SetHotSpot member (presumably because it's held in ImageBuffer and data->buffer could be NULL), and the only way I can find of setting a new hotspot is:

ImageBuffer ib;
Image img;

// Load an image here

ib = img;
ib.SetHotSpot(Point(0,0));
img = ib;

As far as I can tell this won't actually do any deep copying, but is it really the best way?
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Graphics Context and Draw Object
Next Topic: StreamRaster::LoadAnyFile -- not exist in distribution?
Goto Forum:
  


Current Time: Fri May 02 00:14:55 CEST 2025

Total time taken to generate the page: 0.02861 seconds