- 
                Notifications
    You must be signed in to change notification settings 
- Fork 114
Closed as not planned
Closed as not planned
Copy link
Labels
bugSomething isn't workingSomething isn't working
Description
Actual behavior
HRESULT Windows.Win32.Graphics.Imaging.IWICBitmapSource.CopyPixels(WICRect* prc, uint cbStride, uint cbBufferSize, byte[] pbBuffer).
I think the byte array is wrong here, because the user have no information about the size of the array before calling CopyPixels.
Also the extended versions for this call seems to be wrong.
Expected behavior
unsafe HRESULT Windows.Win32.Graphics.Imaging.IWICBitmapSource.CopyPixels(WICRect* prc, uint cbStride, uint cbBufferSize, byte* pbBuffer).
Repro steps
- NativeMethods.txtcontent:
IWICBitmapSource
- NativeMethods.jsoncontent (if present):
  "$schema": "https://aka.ms/CsWin32.schema.json",
  "emitSingleFile": true,
  "public": true,
  "comInterop": {
    "useIntPtrForComOutPointers": true,
    "preserveSigMethods": [
      "IWICBitmapSource",
    ]
  },
  "useSafeHandles": false
- Any of your own code that should be shared?
Context
- CsWin32 version: 0.2.219-beta
- Win32Metadata version (if explicitly set by project):
- Target Framework: [e.g. netstandard2.0]
- LangVersion(if explicitly set by project): [e.g.- 9]
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working