deltapoint or imagepoint

TeeChart for ActiveX, COM and ASP
Post Reply
BMSIL
Newbie
Newbie
Posts: 1
Joined: Mon Nov 15, 2004 5:00 am

deltapoint or imagepoint

Post by BMSIL » Wed Mar 14, 2007 2:15 am

I want to change the image of deltapoint or imagepoint.

The only image is smile image on deltapoint and blue-circle image on imagepoint.

I think it is not implemented on ActiveX, version 7.0.1.3

I tried to use point series, but the size of the image can not be shrinked like deltapoint series or imagepoint series.

Is there any plan to support this function?

If u didn't understand my opinion due to my poor english, I will try to explain it one more times.

Thank you.

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Mar 19, 2007 11:14 am

Hi,
I think it is not implemented on ActiveX, version 7.0.1.3
Yes, it's a bug/missing feature. It's down our bug/wish list to be considered for further releases.
I tried to use point series, but the size of the image can not be shrinked like deltapoint series or imagepoint series.
Yes, the same can be applied with Point Series. e.g :

Code: Select all

Private Sub Form_Load()
With TChart1
    .Aspect.View3D = False
    .AddSeries scPoint
    .Series(0).FillSampleValues 10
    ImageList1.ListImages.Add , , LoadPicture("C:\Documents and
Settings\Administrator\My Documents\My Pictures\sample.jpg")
    .Series(0).asPoint.Pointer.Brush.AssignImage
ImageList1.ListImages.Item(1).Picture
End With
End Sub
As you said the image is not shrinked automatically, there are no TeeChart methods and properties you can use to manipulate the Image once it has been assigned to IBrush. All manipulation of the image has to occur before the image is assigned, e.g. (solid2.jpg is an image 10 x 20 pixels):

Code: Select all

 Private Sub Form_Load()
 With TChart1
     .Aspect.View3D = False
     .AddSeries scPoint
     .Series(0).FillSampleValues 10
     ImageList1.ListImages.Add , , LoadPicture("C:\Documents and
Settings\Administrator\My Documents\My Pictures\solid2.jpg")
     .Series(0).asPoint.Pointer.Brush.AssignImage
ImageList1.ListImages.Item(1).Picture
     .Series(0).asPoint.Pointer.VerticalSize = ImageList1.ImageHeight *
(Screen.TwipsPerPixelY / 30)
     .Series(0).asPoint.Pointer.HorizontalSize = ImageList1.ImageWidth *
(Screen.TwipsPerPixelX / 30)
 End With
 End Sub

Post Reply