public static Picture getFrameFromFile(File file, int frameNumber) throws IOException, JCodecException {
    """
	Get frame at a specified frame number as JCodec image
	
	@param file
	@param second
	@return
	@throws IOException
	@throws JCodecException
    """
        FileChannelWrapper ch = null;
        try {
            ch = NIOUtils.readableChannel(file);
            return createFrameGrab(ch).seekToFramePrecise(frameNumber).getNativeFrame();
        } finally {
            NIOUtils.closeQuietly(ch);
        }
    }
public static Picture getFrameFromFile(File file, int frameNumber) throws IOException, JCodecException {
        FileChannelWrapper ch = null;
        try {
            ch = NIOUtils.readableChannel(file);
            return createFrameGrab(ch).seekToFramePrecise(frameNumber).getNativeFrame();
        } finally {
            NIOUtils.closeQuietly(ch);
        }
    }
public static Picture getFrameFromFile ( File file , int frameNumber ) throws IOException , JCodecException { FileChannelWrapper ch = null ; try { ch = NIOUtils . readableChannel ( file ) ; return createFrameGrab ( ch ) . seekToFramePrecise ( frameNumber ) . getNativeFrame ( ) ; } finally { NIOUtils . closeQuietly ( ch ) ; } }
Get frame at a specified frame number as JCodec image

@param file
@param second
@return
@throws IOException
@throws JCodecException
Get frame at a specified frame number as JCodec image