Пример #1
0
        public AssImage RenderFrame([NotNull] AssTrack track, long timestamp, out FrameChange frameChange)
        {
            this.EnsureNotDisposed();

            if (_width <= 0 || _height <= 0)
            {
                throw new AssException("Cannot render frame: frame dimensions are not initialized");
            }

            var framePointer = NativeMethods.ass_render_frame(_nativePointer, track.NativePointer, timestamp, out frameChange);

            // framePointer == nullptr => the image is blank

            return(new AssImage(this, framePointer));
        }
Пример #2
0
 public AssImage RenderFrame([NotNull] AssTrack track, long timestamp)
 {
     return(RenderFrame(track, timestamp, out _));
 }