Click or drag to resize

WritableBitmapRenderHandler Class

Version 130.1.90
WritableBitmapRenderHandler - creates/updates an WritableBitmap Uses a MemoryMappedFile for double buffering when the size matches or creates a new WritableBitmap when required
Inheritance Hierarchy
SystemObject
  CefSharp.Wpf.RenderingAbstractRenderHandler
    CefSharp.Wpf.RenderingWritableBitmapRenderHandler

Namespace: CefSharp.Wpf.Rendering
Assembly: CefSharp.Wpf (in CefSharp.Wpf.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class WritableBitmapRenderHandler : AbstractRenderHandler

The WritableBitmapRenderHandler type exposes the following members.

Constructors
 NameDescription
Public methodWritableBitmapRenderHandler Initializes a new instance of the WritableBitmapRenderHandler class.
Top
Properties
 NameDescription
Public propertyCopyOnlyDirtyRect When true if the Dirty Rect (rectangle that's to be updated) is smaller than the full width/height then only copy the Dirty Rect from the CEF native buffer to our own managed buffer. Set to true to improve performance when only a small portion of the screen is updated. Defaults to false currently.
Public propertyIsDisposed Gets a value indicating whether this instance is disposed.
(Inherited from AbstractRenderHandler)
Top
Methods
 NameDescription
Protected methodCreateOrUpdateBitmap
(Overrides AbstractRenderHandlerCreateOrUpdateBitmap(Boolean, Rect, IntPtr, Int32, Int32, Image, Size, MemoryMappedFile, MemoryMappedViewAccessor))
Public methodDispose Releases all resources used by the AbstractRenderHandler object
(Inherited from AbstractRenderHandler)
Protected methodDispose(Boolean) Releases unmanaged and - optionally - managed resources for the AbstractRenderHandler
(Inherited from AbstractRenderHandler)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
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.
(Inherited from AbstractRenderHandler)
Public methodOnPaint Called when an element should be painted. (Invoked from CefRenderHandler.OnPaint) This method is only called when SharedTextureEnabled is set to false.
(Inherited from AbstractRenderHandler)
Protected methodReleaseMemoryMappedView
(Inherited from AbstractRenderHandler)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
See Also