2023-06-08 08:19 AM
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()
{
Solved! Go to Solution.
2023-06-09 03:36 AM
Ok I resolved the problem , Upgrade TouchGFX to version 4.21.4 and regenerate the project, the Needle is showing
2023-06-09 03:36 AM
Ok I resolved the problem , Upgrade TouchGFX to version 4.21.4 and regenerate the project, the Needle is showing