Page 1 of 1

ChartImage-Tool and rotate?

Posted: Wed Mar 08, 2006 9:44 am
by 9523802
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

Posted: Wed Mar 08, 2006 10:15 am
by narcis
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

Posted: Wed Mar 08, 2006 10:42 am
by 9523802
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

Posted: Wed Mar 08, 2006 11:55 am
by narcis
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.