Jump to content

GraphGDIPlus Graph clear


Vision
 Share

Recommended Posts

cant post my complete code.

cause it will not work without my bluetooth PCB/board.

but heres the part where i create the graph

Func _creategraph()


$Graph = _GraphGDIPlus_Create($Form1_1,32,384,449,209,0xFF000000,0xCCCCCCC)

_GraphGDIPlus_Set_RangeX($Graph,0,100); ,10,1,1)
_GraphGDIPlus_Set_RangeY($Graph,0,16); ,10,1,1)

_GraphGDIPlus_Set_GridX($Graph,1,0xFFFFFFFF)
_GraphGDIPlus_Set_GridY($Graph,1,0xFFFFFFFF)

_gradeline()

Endfunc


Func _gradeline()

    _GraphGDIPlus_Set_PenSize($Graph,1)   
    ;----- Set line color and size -----
    _GraphGDIPlus_Set_PenColor($Graph,0x96000000) ;black

    ;----- draw lines -----
    _GraphGDIPlus_Plot_Start($Graph,0,3.5)

    _GraphGDIPlus_Plot_Line($Graph,100,3.5)
    _GraphGDIPlus_Refresh($Graph)

EndFunc

so if i get a new measurement result from my PCB, i tryed to delete the graph and recreate it with the func _creategraph()

but then the graph is displayed not correctly (glitchy).

and if i want to clear it with _GraphGDIPlus_Clear($Graph) just nothing happens.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...