Quantcast
Channel: paint event on picturebox
Browsing latest articles
Browse All 48 View Live

paint event on picturebox

Hy,whithout help i never had imagined to use the "draw one line each tick on bitmap"and all its code.Thanks and regards, Enzo

View Article



paint event on picturebox

But we are using vb.net. Me too, with P/Invoke...

View Article

paint event on picturebox

It is faster to draw one point than to draw 1,000,000 points even in directx.You MUST agree or you dont understand the concept.It is faster when you draw on a Screen DC/GraphicsDirect2D Render Target...

View Article

paint event on picturebox

It is faster to draw one point than to draw 1,000,000 points even in directx.You MUST agree or you dont understand the concept.It is faster when you draw on a Screen DC/GraphicsDirect2D Render Target...

View Article

paint event on picturebox

Yes Castor your are correcct DirectX is faster. That is not the question. A bit when I see other posts from OP :-)Like visual basic is slow, ...Castor,It is faster to draw one point than to draw...

View Article


paint event on picturebox

Yes Castor your are correcct DirectX is faster. That is not the question. A bit when I see other posts from OP :-)Like visual basic is slow, ...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

Hy tommy2train, i have checked your code setting 100000 points, the refreshing speed seems to be the same.If i have well understood, at every tick all points are drawn; notwistanding this, it seems to...

View Article

paint event on picturebox

See the Direct2D sample : it is more than 10 times faster than VB6... Yes, this animation without jerks is impossible with GDI+, and of course with VB6

View Article


paint event on picturebox

Hy tommy2train, i have checked your code setting 100000 points, the refreshing speed seems to be the same.If i have well understood, at every tick all points are drawn; notwistanding this, it seems to...

View Article


paint event on picturebox

HiI must be outof step with things. The highest resolution computer monitor that I could find has a horizontal pixel count of 7680The OP ralks of 1000000 data points AND that he was able to see all of...

View Article

paint event on picturebox

Anyway it is not a directx forum it is a vb.net forumThe code is VB.NET, I used P/Invoke mainly to call ID2D1RenderTarget.DrawLine in a loop to draw the sineIt was to show the OP that VB6 is not...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

Ok I ran it out longer and after 20,000 pts then the draw all in paint event lags to 50 fps and the bitmap add one point each tick is staying at 64 fps.Again graphicsbuffer and of course directx are...

View Article

paint event on picturebox

Show the code with a timer and image then.But timer is not needed, the animations are "automatic" (InvalidateRect => the GPU draws the scene => that's why the scrolling of the sine is very...

View Article


paint event on picturebox

Show the code with a timer and image then.But timer is not needed, the animations are "automatic" (InvalidateRect => the GPU draws the scene => that's why the scrolling of the sine is very smooth)

View Article

paint event on picturebox

In the Direct2D sample I posted, I could plot 1 Millions of points, it will be as fast.It does not use a timer, everything is drawn by the GPU,  so a lot faster than GDI+ Show the code with a timer and...

View Article


paint event on picturebox

In the Direct2D sample I posted, I could plot 1 Millions of points, it will be as fast.It does not use a timer, everything is drawn by the GPU,  so a lot faster than GDI+

View Article

paint event on picturebox

See the Direct2D sample : it is more than 10 times faster than VB6...Laurent,Go ahead and show the directx code for the example with 10000 points including the code timer and etc.I think you are...

View Article


paint event on picturebox

I can do the same with Visual Studio, the difference is that with VB6 i write only:form1.PictureBox.PSet (x,y)With Visual Studio I have to write all the drawing (points). Regards See the Direct2D...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

Hy, thank for your code that could be used in some other application.Next gif shows a VB6 program that (if you pay attention) add point after point of a physical variable:I can do the same with Visual...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

Hy, thank for your code that could be used in some other application.Next gif shows a VB6 program that (if you pay attention) add point after point of a physical variable:I can do the same with Visual...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

HiHere is yet another ..................This again simulates incoming random data points.This code example shows the data with a variable compression.With a high compression, the following image shows...

View Article


paint event on picturebox

Hy castorix31,data display must not require any intervention. It must display all data arrived, wichever is their number.Which intervention ?It just displays data from the array...

View Article


paint event on picturebox

Hy castorix31,if data are many i will do the scrolling; i have already done a graph that automatically display a moving diagram that upgrades as new data arrive. I have posted the code.I conclude now...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

I did a test with Direct2D for better performanceI use a dynamic array to simulate incoming data, and I shift data when it reaches the right side of the rectangle to scroll the graph and display last...

View Article

paint event on picturebox

 <<It makes no sense to display all as a graph>> ????It is usually done every where. I did this in VB6.You collect on a graph data in one second or one day and you do not want to make any...

View Article


paint event on picturebox

What could i do to monitor the temperature and show all the graph in a day work?A similar example is the Performance page of Task Manager (Processor, Memory, Disk, ... usage)It stores data in an array...

View Article

paint event on picturebox

HiCorrect, you did not understand my example. As I explained, the example was 'The idea is to show that if you have large numbers of data points,it makes no sense to try and display them all as a graph...

View Article

paint event on picturebox

Hy.No, it dont seem to be what i need. You are changing the sinus period and number of points are constant.How could i treat incoming data in this way?Is not possible to add point after point to a...

View Article

paint event on picturebox

HiOK. You are aware that there is a very big difference between storing a large collection of data and trying to displaying it all in this way.By way of an example, using a simulation of incoming data...

View Article



paint event on picturebox

Hy,data are single type, related to some physical variable.data may arrive (from USB for example) at a rate of some second each (or less) and i want to rappresent them on a time graph, for a long time,...

View Article

paint event on picturebox

HiOK, I am beginning to see what you are talking about.What is the format.type of the data?How do you get the data?How quickily does the data change?Why do you experiment with a point count of 1000000?...

View Article

paint event on picturebox

Hy,it requires much time to see something with N=1000000.Set N=10000, with box checked you will se a growing sinusoid.  From about half graph on you'll see a slowing down.If you put N=1000000, for...

View Article

paint event on picturebox

HiThank you for posting some code.Trying your code here doesn't offer much of an insight of your requirements.I needed to change the Pen color to other than white as a white line on a white background...

View Article


paint event on picturebox

Try this code please:"Other way" unchecked = the graph shows point after point (i do not want this) at the speed set  "Other way" checked = the graph shows as it should, but it slows down when points...

View Article

paint event on picturebox

Hy Julie,to fix this problem, when i add a new point, i draw again all data, even what it had been drawn before.This is obviously not correct, but i have not found another way.RegardsHiWhy do you never...

View Article

paint event on picturebox

Hy Julie,to fix this problem, when i add a new point, i draw again all data, even what it had been drawn before.This is obviously not correct, but i have not found another way.Regards

View Article


paint event on picturebox

Hi,What is your current progress on this issue?Do you have any code show us? I will test it on my side. It could be better to help us to find the root cause. You can also upload your project to...

View Article


paint event on picturebox

HImaybe i explained not well what i meant. Anyway your code does what i was not able to do. I think that what i missed in my software was theadd method. All this talking about drawing lines arised from...

View Article

paint event on picturebox

I did that change to show you that you are drawing all the lines every time al toghether. That is not what i need.Please read what i asked in my post! HiYour post is not easy to understand.  First od...

View Article

paint event on picturebox

I did that change to show you that you are drawing all the lines every time al toghether. That is not what i need.Please read what i asked in my post! 

View Article

paint event on picturebox

Hy tommy2train,i executed the simple program with 2 lines.In the   other example of several lines one on the other, you are updating the drwaing each time. If you add a line each time, it happens...

View Article


paint event on picturebox

They are not deleted : you just draw 1 line...

View Article

paint event on picturebox

Hy tommy2train,i executed the simple program with 2 lines.In the   other example of several lines one on the other, you are updating the drwaing each time. If you add a line each time, it happens...

View Article


Image may be NSFW.
Clik here to view.

paint event on picturebox

Hi TommyGood to see you back.Tired and going to bed soon but here is a quickly put together example.OK then, just to add ideas. Here is some GraphicsPath drawing. Useful in some circumstances and keeps...

View Article

Image may be NSFW.
Clik here to view.

paint event on picturebox

Here is another example that adds a new line to a list(of custom lines class) and refreshes the screen image each time the button is clicked.The example makes a custom class. In this case it is obvious...

View Article


Image may be NSFW.
Clik here to view.

paint event on picturebox

In vb.net we must draw on a graphics surface, which is basically a memory block, or on a bitmap, which is basically a memory block, and then assign the bitmap to a graphics surface. The system then...

View Article

paint event on picturebox

HiI suppose it is because Saturn is in conjunction with Mars causing widespread loss of code.Regards Les, Livingston, Scotland

View Article

paint event on picturebox

I draw a line on a picturebox eith drawline,  but when i later add some point, preceding line disappears.How can i evoyd this?Regards

View Article
Browsing latest articles
Browse All 48 View Live




Latest Images