Ejemplo n.º 1
0
        public int CopyPixels(IWICBitmapSourceImpl *pinst, WICRect *prc, uint cbStride, uint cbBufferSize, byte *pbBuffer)
        {
            var ps   = (PixelSource)GCHandle.FromIntPtr(pinst->source).Target !;
            var area = prc is not null ? new PixelArea(prc->X, prc->Y, prc->Width, prc->Height) : ps.Area;

            ps.CopyPixels(area, (int)cbStride, (int)cbBufferSize, (IntPtr)pbBuffer);

            return(S_OK);
        }
 public HRESULT CopyPixels([NativeTypeName("const WICRect *")] WICRect *prc, uint cbStride, uint cbBufferSize, byte *pbBuffer)
 {
     return(((delegate * unmanaged <IWICDevelopRaw *, WICRect *, uint, uint, byte *, int>)(lpVtbl[7]))((IWICDevelopRaw *)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer));
 }
Ejemplo n.º 3
0
 public HRESULT CopyBlocks([NativeTypeName("const WICRect *")] WICRect *prcBoundsInBlocks, uint cbStride, uint cbBufferSize, byte *pbBuffer)
 {
     return(((delegate * unmanaged <IWICDdsFrameDecode *, WICRect *, uint, uint, byte *, int>)(lpVtbl[5]))((IWICDdsFrameDecode *)Unsafe.AsPointer(ref this), prcBoundsInBlocks, cbStride, cbBufferSize, pbBuffer));
 }
 public int CopyPixels([NativeTypeName("const WICRect *")] WICRect *prc, [NativeTypeName("UINT")] uint cbStride, [NativeTypeName("UINT")] uint cbBufferSize, [NativeTypeName("BYTE *")] byte *pbBuffer)
 {
     return(((delegate * unmanaged <IWICBitmapFlipRotator *, WICRect *, uint, uint, byte *, int>)(lpVtbl[7]))((IWICBitmapFlipRotator *)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer));
 }
 public int Lock([NativeTypeName("const WICRect *")] WICRect *prcLock, [NativeTypeName("DWORD")] uint flags, IWICBitmapLock **ppILock)
 {
     return(((delegate * unmanaged <IWICBitmap *, WICRect *, uint, IWICBitmapLock **, int>)(lpVtbl[8]))((IWICBitmap *)Unsafe.AsPointer(ref this), prcLock, flags, ppILock));
 }
Ejemplo n.º 6
0
 public int Initialize([NativeTypeName("IWICBitmapSource *")] IWICBitmapSource *pISource, [NativeTypeName("const WICRect *")] WICRect *prc)
 {
     return(((delegate * unmanaged[Stdcall] < IWICBitmapClipper *, IWICBitmapSource *, WICRect *, int >)(lpVtbl[8]))((IWICBitmapClipper *)Unsafe.AsPointer(ref this), pISource, prc));
 }
Ejemplo n.º 7
0
 public int WriteSource([NativeTypeName("IWICBitmapSource **")] IWICBitmapSource **ppPlanes, [NativeTypeName("UINT")] uint cPlanes, [NativeTypeName("WICRect *")] WICRect *prcSource)
 {
     return(((delegate * unmanaged[Stdcall] < IWICPlanarBitmapFrameEncode *, IWICBitmapSource **, uint, WICRect *, int >)(lpVtbl[4]))((IWICPlanarBitmapFrameEncode *)Unsafe.AsPointer(ref this), ppPlanes, cPlanes, prcSource));
 }
 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));
 }
Ejemplo n.º 9
0
 public HRESULT WriteSource(IWICBitmapSource *pIBitmapSource, WICRect *prc)
 {
     return(((delegate * unmanaged[Stdcall] < IWICBitmapFrameEncode *, IWICBitmapSource *, WICRect *, int >)(lpVtbl[11]))((IWICBitmapFrameEncode *)Unsafe.AsPointer(ref this), pIBitmapSource, prc));
 }
Ejemplo n.º 10
0
 public int WriteSource([NativeTypeName("IWICBitmapSource *")] IWICBitmapSource *pIBitmapSource, [NativeTypeName("WICRect *")] WICRect *prc)
 {
     return(((delegate * unmanaged[Stdcall] < IWICBitmapFrameEncode *, IWICBitmapSource *, WICRect *, int >)(lpVtbl[11]))((IWICBitmapFrameEncode *)Unsafe.AsPointer(ref this), pIBitmapSource, prc));
 }
Ejemplo n.º 11
0
 public int CopyPixels([NativeTypeName("const WICRect *")] WICRect *prc, [NativeTypeName("UINT")] uint uiWidth, [NativeTypeName("UINT")] uint uiHeight, [NativeTypeName("WICPixelFormatGUID *")] Guid *pguidDstFormat, WICBitmapTransformOptions dstTransform, [NativeTypeName("UINT")] uint nStride, [NativeTypeName("UINT")] uint cbBufferSize, [NativeTypeName("BYTE *")] byte *pbBuffer)
 {
     return(((delegate * unmanaged <IWICBitmapSourceTransform *, WICRect *, uint, uint, Guid *, WICBitmapTransformOptions, uint, uint, byte *, int>)(lpVtbl[3]))((IWICBitmapSourceTransform *)Unsafe.AsPointer(ref this), prc, uiWidth, uiHeight, pguidDstFormat, dstTransform, nStride, cbBufferSize, pbBuffer));
 }
Ejemplo n.º 12
0
 public int CopyPixels([NativeTypeName("const WICRect *")] WICRect *prc, [NativeTypeName("UINT")] uint cbStride, [NativeTypeName("UINT")] uint cbBufferSize, [NativeTypeName("BYTE *")] byte *pbBuffer)
 {
     return(((delegate * unmanaged[Stdcall] < IWICColorTransform *, WICRect *, uint, uint, byte *, int >)(lpVtbl[7]))((IWICColorTransform *)Unsafe.AsPointer(ref this), prc, cbStride, cbBufferSize, pbBuffer));
 }
Ejemplo n.º 13
0
 public HRESULT WriteSource(IWICBitmapSource **ppPlanes, uint cPlanes, WICRect *prcSource)
 {
     return(((delegate * unmanaged <IWICPlanarBitmapFrameEncode *, IWICBitmapSource **, uint, WICRect *, int>)(lpVtbl[4]))((IWICPlanarBitmapFrameEncode *)Unsafe.AsPointer(ref this), ppPlanes, cPlanes, prcSource));
 }