/// <summary>Move a number of frames into a temporary stream</summary> /// <param name="start">First frame to cut</param> /// <param name="length">Count of frames to cut</param> /// <returns>Pointer to the unmanaged temporary stream</returns> public IntPtr Cut(int start, int length) { IntPtr copyPointer = IntPtr.Zero; int result = Avi.EditStreamCut(editableStream, ref start, ref length, ref copyPointer); if (result != 0) { throw new Exception("Exception in Cut: " + result); } CountFrames -= length; return(copyPointer); }