ImagePoint

TeeChart for ActiveX, COM and ASP
Post Reply
Rossmc
Newbie
Newbie
Posts: 23
Joined: Thu Mar 30, 2006 12:00 am

ImagePoint

Post by Rossmc » Wed May 23, 2007 2:03 pm

I want to draw a custom image at each point of my series. When I do this using the Point series and the .Brush.AssignImage method it seems as though it tiles the image behind the chart and each point is actually a 'cut-out' displaying a portion of the tiled image, meaning my image looks wrong.

For reference I am trying to plot an image of a page at each point to represent a user-defined note at that date. User could then click on point to edit note.

Hope this makes sense.

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

Post by Narcís » Thu May 24, 2007 8:28 am

Hi Rossmc,

Well, 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
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