Show / Hide Table of Contents

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

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
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 { readonly get; set; }
Property Value
Type Description
float

NumXDivisions

Number of "pixel" divisions the source is divided up into horizontally

Declaration
public int NumXDivisions { readonly get; set; }
Property Value
Type Description
int

NumYDivisions

Number of "pixel" divisions the source is divided up into vertically

Declaration
public int NumYDivisions { readonly get; set; }
Property Value
Type Description
int

Methods

PreSet(float)

Returns a pre-set effect configuration scaled between 0 and 1

Declaration
public static PixellateConfiguration PreSet(float amount)
Parameters
Type Name Description
float amount

0 to 1 intensity of effect (reflects size of 'pixels')

Returns
Type Description
PixellateConfiguration
In this article
Back to top yak2D - Alex Paterson