<svg id="mysvg" width="191" height="152" viewBox="0 0 191 152" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M161.5 60C158.5 59.8333 150 63 140 77V89.5L161.5 77L148.5 86.5C150.5 91.6667 154.9 102.4 156.5 104C158.1 105.6 166.167 107 170 107.5C175.167 104.167 185.9 97.1 187.5 95.5C189.1 93.9 184.167 78.8333 181.5 71.5L161.5 60Z" />
<path d="M189.5 133.5L142.5 129.5L133 133.5L130.5 146.5C134.5 147.833 143.6 150.5 148 150.5C152.4 150.5 152.833 144.5 152.5 141.5L170.5 150.5L189.5 133.5Z" />
<rect x="45" width="35" height="35" />
<rect x="45" y="48" width="35" height="35" />
<rect x="45" y="96" width="35" height="35" />
<circle cx="17.5" cy="17.5" r="17.5" />
<circle cx="17.5" cy="65.5" r="17.5" />
<circle cx="17.5" cy="113.5" r="17.5" />
<path d="M107.5 2L122.655 28.25H92.3446L107.5 2Z" />
<path d="M107.5 50L122.655 76.25H92.3446L107.5 50Z" />
<path d="M107.5 98L122.655 124.25H92.3446L107.5 98Z" />
<line x1="133" y1="19.5" x2="156" y2="19.5" />
<line x1="133" y1="36.5" x2="156" y2="36.5" />
</svg>
#mysvg *:nth-child(1) {
fill:red;
stroke:blue;
}
#mysvg *:nth-child(2) {
stroke:red;
}
#mysvg *:nth-child(3) {
fill:yellow;
}
#mysvg *:nth-child(4) {
fill:blue;
}
#mysvg *:nth-child(5) {
fill:red;
}
#mysvg *:nth-child(6) {
fill:red;
}
#mysvg *:nth-child(7) {
fill:green;
}
#mysvg *:nth-child(8) {
fill:purple;
}
#mysvg *:nth-child(9) {
fill:green;
}
#mysvg *:nth-child(10) {
fill:blue;
}
#mysvg *:nth-child(11) {
fill:black;
}
#mysvg *:nth-child(12) {
stroke:red;
}
#mysvg *:nth-child(13) {
stroke:green;
}
using System;
using System.Runtime.InteropServices;
namespace ConsoleApplication2
{
class Program
{
private const int WM_CAP_DRIVER_CONNECT = 0x40a;
private const int WM_CAP_DRIVER_DISCONNECT = 0x40b;
private const int WS_CHILD = 0x40000000;
private const int WS_POPUP = unchecked((int)0x80000000);
private const int WM_CAP_SAVEDIB = 0x419;
[DllImport("avicap32.dll", EntryPoint = "capCreateCaptureWindowA")]
public static extern IntPtr capCreateCaptureWindowA(string lpszWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int hwndParent, int nID);
[DllImport("user32", EntryPoint = "SendMessage")]
public static extern int SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);
public static void Main()
{
String dName = "".PadRight(100);
String dVersion = "".PadRight(100);
IntPtr hWndC = capCreateCaptureWindowA("VFW Capture", WS_POPUP | WS_CHILD, 0, 0, 320, 240, 0, 0); // узнать дескриптор камеры
SendMessage(hWndC, WM_CAP_DRIVER_CONNECT, 0, 0); //подключиться к камере
string path = @"D:\test.jpg";
IntPtr hBmp = Marshal.StringToHGlobalAnsi(path);
SendMessage(hWndC, WM_CAP_SAVEDIB, 0, hBmp.ToInt32()); // сохранить скриншот
SendMessage(hWndC, WM_CAP_DRIVER_DISCONNECT, 0, 0); //отключить камеру
}
}
}
Вы удалил свой вопрос ну я предполагаю что, что то типа такого или такого