ICamera.cs 986 字节
using System;
using System.Drawing;
using System.Drawing.Imaging;

namespace Asa.CameraFactory
{
    public interface ICamera
    {
        public string[] Name { get; }
        public int Count { get; }
        public bool[] IsOpen { get; }
        public Size[] Size { get; }
        public Bitmap Image { get; }
        public IntPtr Preview { set; get; }


        public bool Load();
        public void Dispose();
        public bool OpenAll();
        public void CloseAll();
        public bool Open(int cameraIndex);
        public void Close(int cameraIndex);
        public bool GrabOne(out Bitmap[] bmp);
        public bool GrabOne(string cameraName, out Bitmap bmp);
        public bool GrabOne(int cameraIndex);
        public bool GrabOne(int cameraIndex, out Bitmap bmp);
        public bool GrabOne(int cameraIndex, out byte[] buff, out PixelFormat format);
        public bool GrabOne(int cameraIndex, out IntPtr handle, out PixelFormat format);
        

    }
}