BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to mirror cursor

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics
View previous topic :: View next topic  
Author Message
Henrik Bruhn
Guest





PostPosted: Fri Jul 07, 2006 8:11 am    Post subject: How to mirror cursor Reply with quote



Hi

I want to mirror the crHandpoint cursor so it is turned upside down and
points down instead of up. How to do that?

Henrik
Back to top
Henrik Bruhn
Guest





PostPosted: Fri Jul 07, 2006 7:46 pm    Post subject: Re: How to mirror cursor Reply with quote



Hi

Found the solution
Read the cursorfile into TC, mirror the AND and XOR planes and write back
the cursor file.
Then use resource workshop to set the hotspot.

Henrik
----------------------------------
type
TPlane= array[0..31] of integer;
TC = packed record
Bytes: array[0..69] of byte;
XORPlane, ANDPlane: TPlane;
end;

procedure MirrorPlane(var Plane: TPlane);
var
n: integer;
Temp: integer;
begin
for n:= 0 to 15 do begin
Temp:= Plane[n];
Plane[n]:= Plane[31-n];
Plane[31-n]:= Temp;
end;
end;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Graphics All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.