ChartImage-Tool and rotate?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Alex
Newbie
Newbie
Posts: 38
Joined: Tue Aug 31, 2004 4:00 am
Location: Austria/Europe

ChartImage-Tool and rotate?

Post by Alex » Wed Mar 08, 2006 9:44 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 08, 2006 10:15 am

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.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Alex
Newbie
Newbie
Posts: 38
Joined: Tue Aug 31, 2004 4:00 am
Location: Austria/Europe

Post by Alex » Wed Mar 08, 2006 10:42 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Mar 08, 2006 11:55 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply