Skip to content

Overlays before or after transforms

The OverlayAfterTransform property specifies whether the graphic and text overlays are applied before or after the transforms (like video rotation, cropping, etc.).

It also sets when the image adjustments (VideoProcessing_Brightness, VideoProcessing_Contrast, VideoProcessing_Hue, VideoProcessing_Saturation, VideoProcessing_GrayScale, VideoProcessing_InvertColors) are applied, relative to the OnFrameBitmap event and the overlays:

  • false (default): OnFrameBitmap and the overlays get the frame before the adjustments; the overlays are adjusted with the video (e.g. converted to grayscale).
  • true: the adjustments are applied first; OnFrameBitmap receives the adjusted frame, and the overlays keep their colors.

An application that displays the bitmap of OnFrameBitmap itself (e.g. in a WPF Image control) must enable OverlayAfterTransform to show the adjustments. See Image adjustments (brightness, contrast, etc).