Table of Contents

Class ImageMultiScaler

Namespace
Stride.Rendering.Images
Assembly
Stride.Rendering.dll

Allow to up-scale or down-scale a texture (input) multiple times while capturing intermediate mipmap results (outputs).

public class ImageMultiScaler : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Inheritance
ImageMultiScaler
Implements
Inherited Members
Extension Methods

Remarks

Based on the input texture and output texture, this class automatically downscale or upscale the input texture to the different output textures. The requirement for the output textures are:

  • They must have a mipsize compatible with input texture (multiple of 2).
  • They must share the same pixel format.
  • They must be a different size from input texture.
  • They must scale to a single direction (either down or up scale, but not both).

Constructors

ImageMultiScaler()

Initializes a new instance of the ImageMultiScaler class.

public ImageMultiScaler()

ImageMultiScaler(bool)

public ImageMultiScaler(bool useOverSampling)

Parameters

useOverSampling bool

Methods

DrawCore(RenderDrawContext)

Main drawing method for this renderer that must be implemented.

protected override void DrawCore(RenderDrawContext context)

Parameters

context RenderDrawContext

The context.