Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I would like to make a program for below

The image is resize and rotate within a circle, closing the center of a circlet the image will smaller
I spent few weeks for these already, but i still haven’t idea on it.

The concept is like this
http://i26.tinypic.com/1fy539.jpg[^]

[edit]Link linkified - OriginalGriff[/edit]
Posted
Updated 13-Nov-11 6:14am
v3

1 solution

I'm not going to give you the entire code - I don't have time to implement the whole thing for testing, and it's been a while since I did anything like this. I don't want to bang out an example that doesn't work...:laugh:

However, it's actually pretty simple - all you need to do is in your Paint event, apply the appropriate transforms to the supplied Graphics object. MSDN should show you how, with a bit of playing: Graphics.RotateTransform[^] and Graphics.ScaleTransform[^]

If I remember correctly, you should find it is just a case of calling the simplest version of each, once in each Paint event. You may need to play with the order because the transforms are cumulative, IIRC
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900