Skip to content

PostProcessingServiceCollectionExtensions.AddGrayscaleEffect(this IServiceCollection, int, int, float) Method

Definition

Namespace: Brine2D.Rendering.SDL

Add a grayscale effect to the pipeline. Converts the rendered image to black and white using luminance calculation.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddGrayscaleEffect(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, int width=1280, int height=720, float intensity=1f);

Parameters

services Microsoft.Extensions.DependencyInjection.IServiceCollection

width System.Int32

height System.Int32

intensity System.Single

Returns

Microsoft.Extensions.DependencyInjection.IServiceCollection