cancel
Showing results for 
Search instead for 
Did you mean: 

Gauge Needle non appare

PZamb.2
Associate III

Hi,

I make a project with touchGFX Designer 4.21.1, I place a gauge but the display show only the indicator without needle.

I try with a default indicator in library.

with simulator is currect.

screenViewBase::screenViewBase()

{

   __background.setPosition(0, 0, 480, 480);

   __background.setColor(touchgfx::Color::getColorFromRGB(0, 0, 0));

   add(__background);

   Centro.setXY(-120, -101);

   Centro.setBitmap(touchgfx::Bitmap(BITMAP_OVERLAY_ID));

   add(Centro);

   gauge1.setBackground(touchgfx::Bitmap(BITMAP_ALTERNATE_THEME_IMAGES_WIDGETS_GAUGE_MEDIUM_BACKGROUNDS_ACTIVE_ID));

   gauge1.setPosition(128, 173, 240, 240);

   gauge1.setCenter(120, 120);

   gauge1.setStartEndAngle(-113, 112);

   gauge1.setRange(0, 100);

   gauge1.setValue(50);

   gauge1.setNeedle(BITMAP_ALTERNATE_THEME_IMAGES_WIDGETS_GAUGE_MEDIUM_NEEDLES_SMOOTH_ID, 7, 67);

   gauge1.setMovingNeedleRenderingAlgorithm(touchgfx::TextureMapper::BILINEAR_INTERPOLATION);

   gauge1.setSteadyNeedleRenderingAlgorithm(touchgfx::TextureMapper::BILINEAR_INTERPOLATION);

   add(gauge1);

}

screenViewBase::~screenViewBase()

{

1 ACCEPTED SOLUTION

Accepted Solutions
PZamb.2
Associate III

Ok I resolved the problem , Upgrade TouchGFX to version 4.21.4 and regenerate the project, the Needle is showing

View solution in original post

1 REPLY 1
PZamb.2
Associate III

Ok I resolved the problem , Upgrade TouchGFX to version 4.21.4 and regenerate the project, the Needle is showing