What's the fastest way to get pixel data from a Bitmap?

This page summarizes the projects mentioned and recommended in the original post on /r/csharp

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • Vortice.Windows

    .NET bindings for Direct3D12, Direct3D11, WIC, Direct2D1, XInput, XAudio, X3DAudio, DXC, Direct3D9 and DirectInput.

    In C#, that means you'll need something like Vortice.Windows or Silk.NET. If you just want WIC (and not a bunch of DirectX stuff, there's also a plain old WIC interop library. And if you don't mind a well-tested, yet end-of-life library, there's SharpDX.

  • Silk.NET

    The high-speed OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, WebGPU, and DirectX bindings library your mother warned you about.

    In C#, that means you'll need something like Vortice.Windows or Silk.NET. If you just want WIC (and not a bunch of DirectX stuff, there's also a plain old WIC interop library. And if you don't mind a well-tested, yet end-of-life library, there's SharpDX.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • WIC

    A COM interop library for .NET that makes Windows Imaging Component (WIC) available to managed code.

    In C#, that means you'll need something like Vortice.Windows or Silk.NET. If you just want WIC (and not a bunch of DirectX stuff, there's also a plain old WIC interop library. And if you don't mind a well-tested, yet end-of-life library, there's SharpDX.

  • SharpDX

    In C#, that means you'll need something like Vortice.Windows or Silk.NET. If you just want WIC (and not a bunch of DirectX stuff, there's also a plain old WIC interop library. And if you don't mind a well-tested, yet end-of-life library, there's SharpDX.

  • OpenCvSharp

    OpenCV wrapper for .NET

    Maybe opencv will be faster? https://github.com/shimat/opencvsharp

  • terrafx.interop.windows

    Interop bindings for Windows.

    I'm using WIC through TerraFX.Interop.Windows in one of my projects, would definitely also recommend that one if anyone's looking for fast, native 1:1 bindings to all these various Win32 APIs.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts