Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Raw Buffer Visualizer
Raw Buffer Visualizer

Raw Buffer Visualizer

Noah Choi

|
225 installs
| (3) | Free
Image Watch-style C# debugging with Bitmap/Mat inspection, automatic camera-frame discovery, and raw-buffer diagnosis.
Download

Raw Buffer Visualizer

Image Watch-style debugging for C# machine vision

Inspect image variables and raw 2D buffers directly inside Visual Studio at a breakpoint. Raw Buffer Visualizer opens System.Drawing.Bitmap, OpenCvSharp Mat, Emgu CV Mat, pointer-backed frames, snapshots, and supported collections in one docked viewer without debug-only image conversion code.

Inspect image memory from Visual Studio Watch in the docked viewer

Recorded on 2026-11-03 with the final Raw Buffer Visualizer 2.2.4.0 UI in Visual Studio 2026. The first clip opens a 1280 x 720 industrial-machine image from Watch into the docked viewer. The following clips show manual stride correction in a snapshot file and pixel inspection of a captured image after execution ends. Idle intervals are removed, the zoom sequence is accelerated, and result frames are held for readability; the clips are not processing-time measurements.

Manually apply a known padded stride to a PCB snapshot file

Zoom into image details and inspect the pixel neighborhood

What's New In 2.2.4

2.2.4 redesigns the docked workspace and inspection workflow while improving pixel accuracy, debugger-state transitions, cancellation, saving and error recovery.

  • Redesigned docked workspace: Image details, viewer commands and pixel values sit beside the image. Pixel, Histogram, Buffer format, Compare and Diagnostics share one Inspector, with the same workflow across narrow and wide windows.
  • Richer pixel inspection: Adds a pixel-colored 5×5 neighborhood, channel statistics and a 17-sample row profile. Histograms display mean and population standard deviation, while large numbers and fractional values remain more readable in narrow panels.
  • Simpler image lists and comparisons: Compact image cards preserve the active selection when a menu opens. Assign A/B slots from cards, exchange them with Swap, and confirm Clear all inline before removing list entries.
  • Per-image layout edits and diagnosis: Reset layout edits and Preview, Apply or Cancel Buffer Doctor candidates for each image. Candidate lists support mouse-wheel scrolling.
  • Preferences and keyboard behavior: Remembers the right-hand Inspector's last open or closed state across reopening and Visual Studio restarts. Improves Tab/Shift+Tab navigation, Escape closing and focus restoration in popups, and Escape release of pinned pixels.
  • Corrected values and validation: Fixes fractional RGB averages, Float32 display and pixel interpretation in comparison images. Preserves per-channel valid-bit semantics and legacy color declarations, and strengthens debugger format-string handling, ROI bounds and packed-pixel size arithmetic.
  • More consistent debugger state: Keeps automatic scan batches in their originating frame and prevents late results from cancelled, replaced or ended sessions from overwriting the current view. Live-memory invalidation and cache replacement are also improved.
  • Saving and error recovery: Improves temporary-output cleanup and preservation of existing snapshots on cancellation or failure. RAW subdirectory paths survive saving and reopening, and the original transfer error is retained if writing its report also fails.
  • Less temporary transfer work: Improves contiguous-memory reads and existing JSON chunk-buffer use to reduce repeated copying and temporary stream growth. Transfer limits and debugger timeouts remain unchanged.

Main Workflow

  1. Install Raw Buffer Visualizer and restart Visual Studio.
  2. Start debugging and stop after the image object has been initialized.
  3. Select the Raw Buffer Visualizer magnifying-glass entry on a supported variable, or open View > Raw Buffer Visualizer and use Automatic Inspector.
  4. Select an image row to inspect its expression name, dimensions, format, stride, source state, pointer provenance, and pixels.
  5. Hover the image for X/Y, channel or signed values, and raw bytes. Use Fit, 1:1, pan, zoom, markers, histogram, line profile, A/B comparison, or Save as needed.

Images accumulate in the list. Clear all removes the complete viewer list and resets document-specific presentation without changing data in the paused program.

Supported Inputs

Input Support
System.Drawing.Bitmap 8-bit indexed, 24-bit RGB storage, and common 32-bit RGB/ARGB/PARGB formats
OpenCvSharp Mat CV_8UC1, CV_8UC3, CV_8UC4, CV_16UC1, CV_32FC1, CV_32SC1
Emgu CV Mat Cv8U C1/C3/C4, Cv16U C1, Cv32F C1, Cv32S C1
RawBufferSnapshot Managed snapshots from byte, unsigned-16, float-32, signed-int-32, or pointer data
RawBufferView Pointer plus explicit width, height, stride, format, length, and lifetime metadata
Existing application frame wrappers Automatic Inspector recognizes safe debugger-visible layouts; ambiguous layouts can be saved once through Connect Your Buffer
Collections Lists, dictionaries, concurrent dictionaries, arrays, and mixed supported image collections
Snapshot files .rbuf.json descriptor plus .raw payload

Supported pixel formats are Mono8, Mono16, Mono10PackedLsb, Mono12PackedLsb, Binary, RGB24, BGR24, BGRA32, Float32, Int32, and 8-bit Bayer RGGB, GRBG, GBRG, and BGGR previews.

CV_32SC1 means one channel containing signed 32-bit integers. It does not mean 32 channels. Multi-channel signed formats such as CV_32SC2, CV_32SC3, and CV_32SC4 are not interpreted as images by this release.

Automatic Inspector And Connect Your Buffer

Leave Auto Inspect on Break enabled to scan the selected stack frame for initialized supported Mats and safe image-like objects. Scan Now remains available while automatic scanning is off. Large results use bounded discovery and incremental loading, with visible candidate, refreshed, deferred, and failed counts.

  • [Auto] opened successfully.
  • [Map] needs a one-time member or enum mapping.
  • [Failed] was recognized but could not be read safely.

One failed item does not block other images. Matching automatic rows refresh in place across repeated Break, F10, and Scan Now operations.

When an application object is image-like but ambiguous, Connect Your Buffer lets you review Data, Width, Height, Stride, Buffer Length, Pixel Format, Valid Bits, and Byte Order roles. Preview is explicit; only Save Mapping persists the mapping for later equivalent breaks.

Pointer And Lifetime Safety

The viewer validates dimensions, stride, minimum row bytes, required span, format, valid bits, and arithmetic before rendering. OpenCvSharp and Emgu rows distinguish the native object Ptr from the Pixels address used to read image bytes. ImagePtr and RawBufferView show a combined pointer/pixel address when both are identical.

Each open reads the bytes currently stored at the address. Reusing an address does not reuse stale image content. The debuggee must remain paused and keep live memory valid while the viewer reads it.

Vision Buffer Doctor

If a raw image appears sheared, too dark, scrambled, or incorrectly packed, open Format > Diagnose buffer. Buffer Doctor ranks plausible dimensions, stride, format, valid bits, and byte order from bounded samples without changing the paused program's bytes.

The images below show the same snapshot file before and after manually changing its stride from 3,840 to 3,920 bytes in Format. Buffer Doctor's candidate search is bounded; this example applies a known value manually.

PCB snapshot interpreted with an incorrect 3,840-byte stride

The same PCB snapshot after manually applying its 3,920-byte stride

Visual Studio Compatibility

  • Visual Studio 2022 Community, Professional, or Enterprise 17.9+, x64.
  • Stable Visual Studio 2026 18.x, x64.
  • Visual Studio 2019, 32-bit Visual Studio, and Preview/Insiders builds are not release targets.

Visual Studio and this extension are the only separate software required by an extension user. Image libraries used by the application being debugged remain part of that application.

Privacy And Diagnostics

Raw Buffer Visualizer runs locally. Error rows can copy a support report containing versions, source type, technical error details, and local diagnostic paths; image payloads and credentials are excluded. Review local paths before sharing a report.

Source code and complete documentation · Complete changelog

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft