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 943 - Setting an image to the Back Wall makes the image to appear also in the panel background
Summary: Setting an image to the Back Wall makes the image to appear also in the panel...
Status: RESOLVED FIXED
Alias: None
Product: Java TeeChart
Classification: Unclassified
Component: Chart (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-03 11:53 EDT by yeray alonso
Modified: 2014-10-07 09:16 EDT (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2014-10-03 11:53:25 EDT
This code reproduces the problem.
Don't forget to put the image at res\drawable

        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
           
            createChart();
            testLoadImage();
        }

       private TChart tChart1;
       private void createChart() {
          LinearLayout layout = (LinearLayout) findViewById(R.id.chart_layout1);
          tChart1 = new TChart(this);
          layout.addView(tChart1);
       }

       private void testLoadImage() {
          
          tChart1.getAspect().setView3D(false);
          
          Bitmap bitmapLogo = BitmapFactory.decodeResource(
                getApplicationContext().getResources(),
                R.drawable.health_regions_chart);
          
          tChart1.getWalls().getBack().getBrush().setImage(new Image(bitmapLogo));
       }