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  |
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?
|
|
|
Goto Forum:
Current Time: Fri May 02 00:06:40 CEST 2025
Total time taken to generate the page: 0.03952 seconds
|