Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 2587 - Point Image series do not work
Summary: Point Image series do not work
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: .NET 5.0 (show other bugs)
Version: TeeChart.NET 2013 4.1.2013.11080
Hardware: PC Windows
: --- blocker
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-14 02:47 EST by Luigi Casalegno
Modified: 2023-02-15 05:53 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments
the attachment contains the images and the small program that show the errors (131.92 KB, application/x-zip-compressed)
2023-02-14 02:47 EST, Luigi Casalegno
Details
screenshot of working PointImage series in .NET 6.0 (44.64 KB, image/png)
2023-02-14 06:42 EST, christopher ireland
Details
Default image (29.94 KB, image/png)
2023-02-15 05:53 EST, christopher ireland
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luigi Casalegno 2023-02-14 02:47:15 EST
Created attachment 1033 [details]
the attachment contains the images and the small program that show the errors

when I try to use Point Image series the editor accept it as you can see in atteched picture PointImageError0. When I start the very simple application attached it returns the error shown in attached PointImageError1. If I stop the program and I try again the designer it returns the error shown in PointImageError2 even if I close Visual Studio and I start it again
Comment 1 Luigi Casalegno 2023-02-14 02:48:53 EST
I am using the last version of Steema 4.2023.2.13 and .NET6 as you can see from the csproj file
Comment 2 christopher ireland 2023-02-14 06:42:19 EST
Created attachment 1034 [details]
screenshot of working PointImage series in .NET 6.0

Using the following code against Steema.TeeChart.NET v.4.2023.2.13 in .NET 6.0 for Windows Forms:

        private void InitializeChart2()
        {
            var points = new ImagePoint(tChart1.Chart);

            var path = @"C:\Users\Chris\Documents\es.png";
            points.PointImage = TImage.FromFile(path);
            points.Pointer.HorizSize = 11;
            points.Pointer.VertSize = 6;
            points.FillSampleValues();
        }

I obtain the screenshot attached.
Comment 3 christopher ireland 2023-02-14 06:46:45 EST
We will fix the issue at designtime in an upcoming release.
Comment 4 Luigi Casalegno 2023-02-14 08:43:41 EST
Thank you very much. Where can I find the default image you use in the designer? We are using that one and porting the application in .NET 6 we do not want to change
Comment 5 christopher ireland 2023-02-15 05:53:23 EST
Created attachment 1035 [details]
Default image

The default image for ImagePoint is a resource of the TeeChart.WinForm.dll assembly, and as such it will render when no other image is defined, e.g.

       private void InitializeChart2()
        {
            tChart1.Series.Add(typeof(ImagePoint)).FillSampleValues();
        }

Gives me this default image.