Skip to content

To retrieve a pixel value

The RGB value of a pixel at the (x, y) location in the video frame is retrieved by invoking GetRGBPixelAt from the OnFrameOverlayUsingDC event.

The video size is returned by VideoWidth and VideoHeight.

Note

OnFrameOverlayUsingDC is not raised by default for the 4K / 8K video clips, whose frames are kept in NV12: set FrameGrabberRGBFormat = fgf_RGB32 before opening the clip, see 4K and 8K playback.