public virtual int CreateNewFrame( out IWICBitmapFrameEncode ppIFrameEncode, out IPropertyBag2 ppIEncoderOptions ) { var fp = GetFunctionPointer(10); if (m_CreateNewFrameFunc == null) { m_CreateNewFrameFunc = (CreateNewFrameFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateNewFrameFunc)); } ppIFrameEncode = new IWICBitmapFrameEncode(); ppIEncoderOptions = new IPropertyBag2(); return(m_CreateNewFrameFunc(m_ptr, out ppIFrameEncode.PtrForNew, out ppIEncoderOptions.PtrForNew)); }
public virtual int WriteFrameThumbnail( ID2D1Image pImage, IWICBitmapFrameEncode pFrameEncode, ref WICImageParameters pImageParameters ) { var fp = GetFunctionPointer(4); if (m_WriteFrameThumbnailFunc == null) { m_WriteFrameThumbnailFunc = (WriteFrameThumbnailFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(WriteFrameThumbnailFunc)); } return(m_WriteFrameThumbnailFunc(m_ptr, pImage != null ? pImage.Ptr : IntPtr.Zero, pFrameEncode != null ? pFrameEncode.Ptr : IntPtr.Zero, ref pImageParameters)); }
public virtual int CreateNewFrame( out IWICBitmapFrameEncode ppIFrameEncode, out uint pArrayIndex, out uint pMipLevel, out uint pSliceIndex ) { var fp = GetFunctionPointer(5); if (m_CreateNewFrameFunc == null) { m_CreateNewFrameFunc = (CreateNewFrameFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CreateNewFrameFunc)); } ppIFrameEncode = new IWICBitmapFrameEncode(); return(m_CreateNewFrameFunc(m_ptr, out ppIFrameEncode.PtrForNew, out pArrayIndex, out pMipLevel, out pSliceIndex)); }