ImageMultiScaler Class
Namespace: Stride.Rendering.ImagesAssembly: Stride.Rendering.dll
Allow to up-scale or down-scale a texture (input) multiple times while capturing intermediate mipmap results (outputs).
System.Object → DisposeBase → ComponentBase → RendererCoreBase → RendererBase → DrawEffect → ImageEffect →
ImageMultiScaler
Derived from ImageMultiScaler:
public class ImageMultiScaler : ImageEffect, IComponent, IReferencable, ICollectorHolder, IImageEffect, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
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).
Name | Description | |
---|---|---|
Constructors | ||
ImageMultiScaler() | Initializes a new instance of the ImageMultiScaler class. |
|
ImageMultiScaler(Boolean) | ||
Methods | ||
DrawCore(RenderDrawContext) |
Constructors
ImageMultiScaler()
Initializes a new instance of the ImageMultiScaler class.
public ImageMultiScaler()
ImageMultiScaler(Boolean)
public ImageMultiScaler(bool useOverSampling)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | useOverSampling |
Methods
DrawCore(RenderDrawContext)
protected override void DrawCore(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context |