|
-
Apr 15th, 2003, 03:41 PM
#1
Thread Starter
Member
ROTATE a drawing on a picture box??? !
hi,
i have a picture box,and i can draw on it.
how can i get rotate 360 degree ???? whats the algorithm???
i don't want any API, i want it pure algorithm.???
another question,am building an OCR system, but when
reading from a scanner,and testing each pixel,the performance
goes down....is there any way rather than searching the
picutre sequentially??
-
Apr 16th, 2003, 08:34 AM
#2
transcendental analytic
to rotate 360 degres is the same as not rotating at all. to rotate (x,y) a degrees:
newx=x*c-y*s
newy=x*s+y*s
where
c=cos(a/180*3.1415)
s=sin(a/180*3.1415)
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|