Click here to Skip to main content
15,789,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey guys!

I'm 2 weeks into learning about WPF. I have three questions that would help me streamline my research:

1. If I want to create many random shapes with random colors (which I assume must be done with procedural code, not XAML), what is the best class to use? I have been playing around with StreamGeometry, creating shapes by drawing lines, but I can't figure out how to fill the shapes each with different colors.

2. If I want to get access to webcam video and read the rgb values of the pixels, is there a WPF library for this, or should I use something like OpenCV?

3. How do you set the position of a Rectangle in the Rectangle class?
Many thanks for any questions answered!


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900