public bool AddAviVideoFrame(Pixelmap pixmap, double addedGamma, int?adv16NormalisationValue) { if (!TangraVideo.AddAviVideoFrame(pixmap, addedGamma, adv16NormalisationValue)) { MessageBox.Show("There was an error calling AddAviVideoFrame:\r\n\r\n" + TangraVideo.GetLastAviErrorMessage(), "Tangra", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }
public bool StartNewAviFile(string fileName, int width, int height, int bpp, double fps, bool tryCodec) { if (!TangraVideo.StartNewAviFile(fileName, width, height, bpp, fps, tryCodec)) { MessageBox.Show("There was an error calling AddAviVideoFrame:\r\n\r\n" + TangraVideo.GetLastAviErrorMessage(), "Tangra", MessageBoxButtons.OK, MessageBoxIcon.Error); return(false); } return(true); }