Page 1 of 1
deltapoint or imagepoint
Posted: Wed Mar 14, 2007 2:15 am
by 9524874
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.
Posted: Mon Mar 19, 2007 11:14 am
by Pep
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