×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jun 2010
    Location
    Beijing China
    Posts
    12

    How Can make a circle rotate by the center of it ?

    How Can make a circle rotate by the center of it ?ths

  2. #2
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How Can make a circle rotate by the center of it ?

    Quote Originally Posted by vinceno1 View Post
    How Can make a circle rotate by the center of it ?ths
    Uh, how can you tell if a circle is rotating in the first place?

  3. #3
    Registered User
    Join Date
    Jun 2010
    Location
    Beijing China
    Posts
    12

    Re: How Can make a circle rotate by the center of it ?

    Now, I draw a picture of a circle, when I use the fun of rotate, the picture rotate by the picture's left top position,but I want the picture to rotate by its' center.

  4. #4
    Nokia Developer Champion
    Join Date
    Sep 2007
    Location
    Bhavnagar
    Posts
    928

    Re: How Can make a circle rotate by the center of it ?

    Quote Originally Posted by vinceno1 View Post
    Now, I draw a picture of a circle, when I use the fun of rotate, the picture rotate by the picture's left top position,but I want the picture to rotate by its' center.
    If your picture contains only circle than i dont think there is any diff in the output image whether it is rotated from the top left or from center. And one more thing that its of no use of rotating the circle. I think you are need to explain a something more regarding your query.
    Jajal Mehul

  5. #5
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: How Can make a circle rotate by the center of it ?

    He's talking about using the rotate function. By default it rotates around the top left of the image (and rotates the image out of the frame at more than 90 degrees). But you can specify an origin to rotate it around the center or some other axis.

    I've never played with the functions to know the tricks.

    Here are some refs:
    http://doc.qt.nokia.com/4.6-snapshot/coordsys.html
    http://doc.qt.nokia.com/4.6-snapshot/demos-affine.html
    http://doc.qt.nokia.com/4.6-snapshot...ormations.html

  6. #6
    Registered User
    Join Date
    Aug 2010
    Posts
    11

    Re: How Can make a circle rotate by the center of it ?

    All so you could calculate the new location and offset the image inside a container to move as it works,

Similar Threads

  1. How to draw filled-circle?
    By curiouswalker in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-06-22, 16:54
  2. How to get the circle in FP2
    By zdsnet163@163.com in forum Symbian
    Replies: 4
    Last Post: 2009-11-17, 04:38
  3. How to make e71 center numerics function like normal phone when sms-ing
    By djnomad78 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-01-02, 08:31
  4. How to paint circle?
    By balone in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-06-10, 20:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×