Post Reply 
Rotate text?
02-04-2015, 01:25 PM
Post: #12
RE: Rotate text?
(02-04-2015 07:41 AM)cyrille de brébisson Wrote:  FOR x:=-25 TO 25 DO
FOR y:=-25 TO 25 DO
PIXON_P(G1,x+a,y+b,GETPIX_P(G1,x*ca-y*sa,x*sa+y*ca));
END; // end y-height pixels
END; // end x-width pixels

"create a local variable where you place your rotation as a complex number (rot) and then do GETPIX_P(G1,(x,y)*rot)"

cyrille

Thank you for your idea! It should help, but the output format of, "(x,y)*rot" doesn't seem to be compatible with the GETPIX_P[(G],x,y) function. The output is of the form "(x,y)" and the additional overhead to break x and y out of the parens, negates any speed gain.

It's possible I'm not doing something quite right according to your plan, though. If convenient, could you elaborate a bit?

Thanks!

-Dale-
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Rotate text? - DrD - 01-26-2015, 03:28 PM
RE: Rotate text? - cyrille de brébisson - 01-27-2015, 06:57 AM
RE: Rotate text? - Damien - 01-27-2015, 07:22 AM
RE: Rotate text? - cyrille de brébisson - 01-27-2015, 09:11 AM
RE: Rotate text? - DrD - 01-27-2015, 11:20 AM
RE: Rotate text? - Thomas_Sch - 01-27-2015, 12:05 PM
RE: Rotate text? - DrD - 01-27-2015, 01:27 PM
RE: Rotate text? - Thomas_Sch - 01-27-2015, 08:27 PM
RE: Rotate text? - DrD - 02-03-2015, 03:34 PM
RE: Rotate text? - cyrille de brébisson - 02-04-2015, 07:41 AM
RE: Rotate text? - DrD - 02-04-2015 01:25 PM
RE: Rotate text? - Han - 02-04-2015, 01:18 PM
RE: Rotate text? - DrD - 02-04-2015, 01:50 PM



User(s) browsing this thread: 4 Guest(s)