-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
engraved color! #186
Comments
LaserGRBL use GDI+ to draw preview. GDI+ performance is not so fast to allow the redraw of a complex image in small times, so it is not so easy to perform a real-time drawing of the progress. However, if you want to try something, feel free to do your changes on file GrblPanel.cs The function |
It would be very nice to replace the GDI + design with something more powerful (like opengl or directx). If you have suggestion... |
Have you try following libraries |
Thanks for the hint! Since it is not a priority I add to dev roadmap but cannot know when and if could be developed :-) |
I know this issue is closed, but just an FIY. I started implementing a couple of features for personal use. Adding this was simple enough but since I'm not a C# dev it's most likely not up to anyone's standards. It only redraws what is needed, so nice and quick. The 3.6MB file below (220k lines) updates in real-time. The original code takes about 4 seconds for a full redraw. Commands sent (pending) in yellow, commands completed in green. |
Awesome! I will be happy to examine it and insert it into the program |
Sure thing, not problem sharing. The code won't be up to standard, so I pushed the related changes into a fork. The commit can be found here. In short, I added a command number to GrblCommand, then keeping track of that number for the last queued and ack'ed commands. This is used determine what color should be used when drawing the graphic. |
Hi @irkmandeer
I tried to rewrite your code according to a different approach, instead of using the index in the list I proceeded to generate a numeric "id" code of each gcode line in order to recognize the point where it arrived etc but I still had problems therefore I temporarily gave up this job. |
hello there.
I thank you again and again for this perfect project.
I want to change the color of the places that are engraved!
In other words, draw something on preview bitmap while the machine is engraving.
How can I do that?
The text was updated successfully, but these errors were encountered: