login.php profile.php?mode=register faq.php memberlist.php search.php index.php

Index du Forum » Les Commandes » Vos Commandes » Question about use of 2-D Graphic API?
Poster un nouveau sujet  Répondre au sujet Sujet précédent :: Sujet suivant 
Question about use of 2-D Graphic API?
MessagePosté le: Lun 23 Oct - 15:06 (2017) Répondre en citant
JoeClark
Langue pendue
Langue pendue

Hors ligne
Inscrit le: 09 Oct 2017
Messages: 205
Masculin




Hi,


    I want to use the graphic APi to create a bar graph. My question is whether GUI_FillRect() will be able to draw within a dialog box created using GUI_CreateDialogBox()? What I am trying to do is hand-render some data that needs to be graphed on my window. I created most of the window using the GUIBuilder and everything is working fine except I'm having trouble with the graph part. I only want to draw the graph when some data changes that necessitates re-rendering of the graph. I have other items that are changing on the screen like some status text, the time of day, etc. The function that renders the graph is called from WM_PAINT but I don't want to re-render the graph every time WM_PAINT is called. I am using functions like GUI_DrawHLine, GUI_DRawVLine, GUI_SetColor, GUI_DrawPoint to render the graph. What's the recommended way for me to accomplish this?






 Please help.
Thanks!


I didn't find the right solution from the Internet.


References:http://forum.segger.com/index.php?page=Thread&threadID=2258&s=306e9243897de2ff8d0b7f34722184076ef45a5b






online product teaser


Publicité
MessagePosté le: Lun 23 Oct - 15:06 (2017)
Publicité




PublicitéSupprimer les publicités ?
Question about use of 2-D Graphic API?
Index du Forum » Vos Commandes
Toutes les heures sont au format GMT + 2 Heures  
Page 1 sur 1  

  
  
 Poster un nouveau sujet  Répondre au sujet  

Index | forum gratuit | Forum gratuit d’entraide | Annuaire des forums gratuits | Signaler une violation | Conditions générales d'utilisation
Powered by phpBB © 2001-2004 phpBB Group
Designed for Trushkin.net | Themes Database
Traduction par : phpBB-fr.com