Hi,
is there a possibility to rotate the image of a ChartImage-Tool on runtime. E.g. I want to input the rotation angle in a textbox and rotate the image.
I use VS 2005/VB.NET.
Best Regards
Alex
ChartImage-Tool and rotate?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
Yes, you can use the RotateFlip method as shown in the code below or use the commented line to rotate the chart in its entirety.
Yes, you can use the RotateFlip method as shown in the code below or use the commented line to rotate the chart in its entirety.
Code: Select all
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TChart1.Aspect.Orthogonal = False
'TChart1.Aspect.Rotation = Convert.ToInt16(TextBox1.Text)
Me.ChartImage1.Image.RotateFlip(RotateFlipType.Rotate90FlipXY)
End Sub
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Chris,
thanks for the hint. Because the Rotateflip method is fixed to 0/90/180/... I look for something different where I can use an arbitrary angle to rotate (the ChartImage-Tool/background image).
Are there methods to attach the image to a rotated box (???) series instead of the lower left/upper right series/orthogonal. Something like the .NET '.drawimage(image,Destinationpoints)' where I can rotate/stretch/transform the image along 3 vectors/points.
Best Regards
Alex
thanks for the hint. Because the Rotateflip method is fixed to 0/90/180/... I look for something different where I can use an arbitrary angle to rotate (the ChartImage-Tool/background image).
Are there methods to attach the image to a rotated box (???) series instead of the lower left/upper right series/orthogonal. Something like the .NET '.drawimage(image,Destinationpoints)' where I can rotate/stretch/transform the image along 3 vectors/points.
Best Regards
Alex
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
You could also try doing something like the example at All Features\Welcome !\Chart styles\Statistical\Color Grid\ColorGrid Bitmap in the TeeChart features demo, available at its program group.
You could also try doing something like the example at All Features\Welcome !\Chart styles\Statistical\Color Grid\ColorGrid Bitmap in the TeeChart features demo, available at its program group.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |