Table of Contents

Method OnPrepareForRender

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Core.dll

OnPrepareForRender(ChangeType)

Prepares an effect for the rendering process.
For more information, see ID2D1Effect::PrepareForRender

protected virtual void OnPrepareForRender(ChangeType changeType)

Parameters

changeType ChangeType

Remarks

This method is called by the renderer when the effect is within an effect graph that is drawn. The method will be called:

  • If the effect has been initialized but has not previously been drawn.
  • If an effect property has been set since the last draw call.
  • If the context state has changed since the effect was last drawn. The method will not otherwise be called. The transforms created by the effect will be called to handle their input and output rectangles for every draw call. Most effects defer creating any resources or specifying a topology until this call is made.They store their properties and map them to a concrete set of rendering techniques when first drawn.