Click or drag to resize

IRenderHandler Interface

Version 130.1.90
Implement this interface to handle Offscreen Rendering (OSR). NOTE: Currently only OnPaint is implemented, at some point expand the API to include all of CefRenderHandler methods http://magpcss.org/ceforum/apidocs3/projects/(default)/CefRenderHandler.html

Namespace: CefSharp.Wpf
Assembly: CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public interface IRenderHandler : IDisposable

The IRenderHandler type exposes the following members.

Methods
 NameDescription
Public methodDisposePerforms application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
(Inherited from IDisposable)
Public methodOnAcceleratedPaint Called when an element has been rendered to the shared texture handle. This method is only called when SharedTextureEnabled is set to true The underlying implementation uses a pool to deliver frames. As a result, the handle may differ every frame depending on how many frames are in-progress. The handle's resource cannot be cached and cannot be accessed outside of this callback. It should be reopened each time this callback is executed and the contents should be copied to a texture owned by the client application. The contents of acceleratedPaintInfoacceleratedPaintInfo will be released back to the pool after this callback returns.
Public methodOnPaint Called when an element should be painted. (Invoked from CefRenderHandler.OnPaint) This method is only called when SharedTextureEnabled is set to false.
Top
See Also