Beispiel #1
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));
        }
Beispiel #2
0
        public virtual int DoesSupportTransform(
            out uint puiWidth,
            out uint puiHeight,
            WICBitmapTransformOptions dstTransform,
            WICPlanarOptions dstPlanarOptions,
            ref Guid pguidDstFormats,
            out WICBitmapPlaneDescription pPlaneDescriptions,
            uint cPlanes,
            out int pfIsSupported
            )
        {
            var fp = GetFunctionPointer(3);

            if (m_DoesSupportTransformFunc == null)
            {
                m_DoesSupportTransformFunc = (DoesSupportTransformFunc)Marshal.GetDelegateForFunctionPointer(fp, typeof(DoesSupportTransformFunc));
            }

            return(m_DoesSupportTransformFunc(m_ptr, out puiWidth, out puiHeight, dstTransform, dstPlanarOptions, ref pguidDstFormats, out pPlaneDescriptions, cPlanes, out pfIsSupported));
        }
 public HRESULT CopyPixels([NativeTypeName("const WICRect *")] WICRect *prcSource, uint uiWidth, uint uiHeight, WICBitmapTransformOptions dstTransform, WICPlanarOptions dstPlanarOptions, [NativeTypeName("const WICBitmapPlane *")] WICBitmapPlane *pDstPlanes, uint cPlanes)
 {
     return(((delegate * unmanaged <IWICPlanarBitmapSourceTransform *, WICRect *, uint, uint, WICBitmapTransformOptions, WICPlanarOptions, WICBitmapPlane *, uint, int>)(lpVtbl[4]))((IWICPlanarBitmapSourceTransform *)Unsafe.AsPointer(ref this), prcSource, uiWidth, uiHeight, dstTransform, dstPlanarOptions, pDstPlanes, cPlanes));
 }
 public HRESULT DoesSupportTransform(uint *puiWidth, uint *puiHeight, WICBitmapTransformOptions dstTransform, WICPlanarOptions dstPlanarOptions, [NativeTypeName("const WICPixelFormatGUID *")] Guid *pguidDstFormats, WICBitmapPlaneDescription *pPlaneDescriptions, uint cPlanes, BOOL *pfIsSupported)
 {
     return(((delegate * unmanaged <IWICPlanarBitmapSourceTransform *, uint *, uint *, WICBitmapTransformOptions, WICPlanarOptions, Guid *, WICBitmapPlaneDescription *, uint, BOOL *, int>)(lpVtbl[3]))((IWICPlanarBitmapSourceTransform *)Unsafe.AsPointer(ref this), puiWidth, puiHeight, dstTransform, dstPlanarOptions, pguidDstFormats, pPlaneDescriptions, cPlanes, pfIsSupported));
 }