I would like to draw a graph (on a PictureBox) using Graphics in VB.net
The input values are added over some time which need to be presented as graph.
But the problem I am facing is, I need to draw the entire graph from scratch every time a new point is defined. I know, this requires persisting the existing image. But that only allows redrawing the graphics, but not to make incremental changes (on the image) over time.
virupax
0
Virupax
Recommended Answers
Jump to PostI'm not very sure if a PictureBox is best, depending perhaps a Panel control would do. I also think that the graph's background (axis, axis divisions, text and so on) may persist in a bitmap and employ a Graphics instance
gr = Graphics.FromImage(bmp)
to draw the rest.
Jump to PostDid you consider the chart control?
All 6 Replies
xrjf
213
Posting Whiz
Premium Member
ddanbe
2,724
Professional Procrastinator
Featured Poster
virupax
0
Virupax
ddanbe
2,724
Professional Procrastinator
Featured Poster
xrjf
213
Posting Whiz
Premium Member
xrjf
213
Posting Whiz
Premium Member
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.