public CameraFile GetFile(string folder, string name, CameraFileType type, Context context)
        {
            CameraFile file = new CameraFile();

            Error.CheckError(gp_camera_file_get(this.Handle, folder, name, type, file.Handle, context.Handle));

            return(file);
        }
        public CameraFile CapturePreview(Context context)
        {
            CameraFile file = new CameraFile();

            Error.CheckError(gp_camera_capture_preview(this.Handle, file.Handle, context.Handle));

            return(file);
        }
        public void PutFile(string folder, CameraFile file, Context context)
        {
            ErrorCode result;

            unsafe
            {
                result = gp_filesystem_put_file(this.Handle, folder, file.Handle, context.Handle);
            }
            if (Error.IsError(result))
            {
                throw Error.ErrorException(result);
            }
        }
        public CameraFile GetFile(string folder, string filename, CameraFileType type, Context context)
        {
            ErrorCode  result;
            CameraFile file = new CameraFile();

            unsafe
            {
                result = gp_filesystem_get_file(this.Handle, folder, filename, type, file.Handle, context.Handle);
            }
            if (Error.IsError(result))
            {
                throw Error.ErrorException(result);
            }
            return(file);
        }
 public void PutFile(string folder, CameraFile file, Context context)
 {
     Error.CheckError(gp_camera_folder_put_file(this.Handle, folder, file.Handle, context.Handle));
 }
Beispiel #6
0
        public void PutFile(string folder, CameraFile file, Context context)
        {
            Console.WriteLine("libgphoto2-sharp DBG: PutFile(folder={0}, CameraFile.GetName={1}, context)", folder, file.GetName());

            Error.CheckError(gp_filesystem_put_file(this.Handle, folder, file.Handle, context.Handle));
        }
		public CameraFile GetFile (string folder, string name, CameraFileType type, Context context)
		{
			CameraFile file = new CameraFile();
			
			Error.CheckError (gp_camera_file_get(this.Handle, folder, name, type, file.Handle, context.Handle));

			return file;
		}
		public void PutFile (string folder, CameraFile file, Context context)
		{
			Error.CheckError (gp_camera_folder_put_file(this.Handle, folder, file.Handle, context.Handle));
		}
		public CameraFile CapturePreview (Context context)
		{
			CameraFile file = new CameraFile();
			
			Error.CheckError (gp_camera_capture_preview (this.Handle, file.Handle, context.Handle));

			return file;
		}
		public void PutFile (string folder, CameraFile file, Context context)
		{
			ErrorCode result;
			unsafe
			{
				result = gp_filesystem_put_file (this.Handle, folder, file.Handle, context.Handle);
			}
			if (Error.IsError(result)) throw Error.ErrorException(result);
		}
		public CameraFile GetFile (string folder, string filename, CameraFileType type, Context context)
		{
			ErrorCode result;
			CameraFile file = new CameraFile();
			unsafe
			{
				result = gp_filesystem_get_file (this.Handle, folder, filename, type, file.Handle, context.Handle);
			}
			if (Error.IsError(result)) throw Error.ErrorException(result);
			return file;
		}
 public void Copy(CameraFile source)
 {
     Error.CheckError(gp_file_copy(this.Handle, source.Handle));
 }
 public void Convert(string mime_type)
 {
     Error.CheckError(CameraFile.gp_file_convert(this.Handle, mime_type));
 }
		public void Copy (CameraFile source)
		{
			Error.CheckError (gp_file_copy (this.Handle, source.Handle));
		}
	public GPhotoCameraFile (string dir, string name)
	{
		directory = dir;
		filename = name;
		normal = null;
		preview = null;
	}
        public void PutFile(string folder, CameraFile file, Context context)
        {
            Console.WriteLine("libgphoto2-sharp DBG: PutFile(folder={0}, CameraFile.GetName={1}, context)", folder, file.GetName());

            Error.CheckError(gp_filesystem_put_file (this.Handle, folder, file.Handle, context.Handle));
        }