public virtual int WritePixels(
            uint lineCount,
            out WICBitmapPlane pPlanes,
            uint cPlanes
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_WritePixelsFunc == null)
            {
                m_WritePixelsFunc = (WritePixelsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(WritePixelsFunc));
            }

            return(m_WritePixelsFunc(m_ptr, lineCount, out pPlanes, cPlanes));
        }
Пример #2
0
        public virtual int CopyPixels(
            ref WICRect prcSource,
            uint uiWidth,
            uint uiHeight,
            WICBitmapTransformOptions dstTransform,
            WICPlanarOptions dstPlanarOptions,
            ref WICBitmapPlane pDstPlanes,
            uint cPlanes
            )
        {
            var fp = GetFunctionPointer(4);

            if (m_CopyPixelsFunc == null)
            {
                m_CopyPixelsFunc = (CopyPixelsFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(CopyPixelsFunc));
            }

            return(m_CopyPixelsFunc(m_ptr, ref prcSource, uiWidth, uiHeight, dstTransform, dstPlanarOptions, ref pDstPlanes, cPlanes));
        }