BlitzCoder Essentials
•
Home Page
•
About BlitzCoder
•
Contributors
•
Terms of Use
•
Email Us
Main Areas
•
BlitzCoder Chat
•
Discussions
•
Articles/Tutorials
•
Code Database
•
Link Database
•
Showcase Area
•
Worklogs
•
Competitions
Special Areas
•
Undocumented
Other Blitz Sites
•
Blitz Basic Home
•
Blitz Showcase
•
BlitzPlay Library
Forum Login
Username:
Password:
•
Register Now!
BlitzCoder Code Archives Page
Main Codes Page
"DrawImageRotated V0.1"
, by ashcroftman
Pretty fast real-time, non filtered image renderer...
Use as you would normal draw image, with the added Angle par the only differance.
Code
Function drawImageR(image,mX#,mY#,angle#) Local u1#,u2# ;-- For x = 1 To ImageWidth(image) u1 = Cos(angle) * x:u2 = -Sin(angle) * x For y = 1 To ImageHeight(Image) CopyRect x,y,1,1,(u1+Sin(angle) * y)+mX,(u2+Cos(angle)*y)+mY,ImageBuffer(image),BackBuffer() Next Next ;-- End Function
Copyright(c) 2000-2004, BlitzCoder. All Rights Reserved.
Code software created by Krylar's Kreations