Show / Hide Table of Contents

Class Extensions

Inheritance
System.Object
Extensions
Namespace: InsaneScatterbrain.RetroKit
Syntax
public static class Extensions

Methods

Upscale(Texture2D, Int32)

Creates an upscaled copy of the texture. E.g. if the upscale factor is 2 the texture returned will be twice as wide and tall as the original.

Declaration
public static Texture2D Upscale(this Texture2D texture, int upscaleFactor)
Parameters
Type Name Description
UnityEngine.Texture2D texture

The original texture.

System.Int32 upscaleFactor

The upscale factor;

Returns
Type Description
UnityEngine.Texture2D
Back to top Generated by DocFX