Struct PixellateConfiguration
Texture Coordinates are rounded so that the image is divided up into a number of squares that each reference the same pixel, thus creating a pixellated effect The Intensity is an interpolation between the pre-transformed texture coordinates and the post transform coordiantes
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct PixellateConfiguration
Properties
Intensity
0 to 1, representing an interpolation between unmodified texture coordinates and modified. 1.0 resulting in max pixellation
Declaration
public float Intensity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
NumXDivisions
Number of "pixel" divisions the source is divided up into horizontally
Declaration
public int NumXDivisions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
NumYDivisions
Number of "pixel" divisions the source is divided up into vertically
Declaration
public int NumYDivisions { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
PreSet(Single)
Returns a pre-set effect configuration scaled between 0 and 1
Declaration
public static PixellateConfiguration PreSet(float amount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | amount | 0 to 1 intensity of effect (reflects size of 'pixels') |
Returns
| Type | Description |
|---|---|
| PixellateConfiguration |