• Post Reply Bookmark Topic Watch Topic
  • New Topic

Webcam Image Capture using JMyron

 
Pranit Sonawane
Ranch Hand
Posts: 172
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all I'm trying to use JMyron it does work but doesn't display or load CANVAS? here is my code. And yes I have also added dependencies to the source folder of my project. Still its not working? Please Help!

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not used JMyron so cannot offer any assistance there.

In the code you posted, I noticed

Looks like you are trying to draw an image.
The correct way to do it is by overriding the paintComponent method. Check out http://www.coderanch.com/how-to/java/BackgroundImageOnJPanel to see how it's done.
You can read more on custom painting here http://docs.oracle.com/javase/tutorial/uiswing/painting/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!