Results 1 to 2 of 2

Thread: ROTATE a drawing on a picture box??? !

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2003
    Posts
    51

    Lightbulb 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??
    FiDz

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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
  •  



Click Here to Expand Forum to Full Width