Public classes

Controller
DisplayModel
DotMatrix
ImageToContent
TextToContent

Commands/

   AbsCmd
   AbsCmdPosition
   AbsCmdSpeed
   CallbackCommand
   ClearCommand
   ContentCommand
   PauseCommand
   TextCommand

Displays/

   Display
   DisplayObj
   Display_3D
   Display_Sprite
   Display_Texture
   Display_UI


Introduction page

ImageToContent


Static class that can be used to convert image (texture) to content (two dimensional int array) that can be used as input for DotMatrix display.


Enums

public enum ResizeModesList of possible resizing modes that can be used when changing texture to content.

Static Methods

public static int[,] getContent (Texture2D texture, Display_Sprite targetDisplay)Change texture to int[,] type content.
public static int[,] getContent (Texture2D texture, Display_UI targetDisplay)Change texture to int[,] type content.
public static int[,] getContent (Texture2D texture, Display_Sprite targetDisplay, ResizeModes resizeMode)Change texture to int[,] type content, with possible resizing.
public static int[,] getContent (Texture2D texture, Display_UI targetDisplay, ResizeModes resizeMode)Change texture to int[,] type content, with possible resizing.

Enums

public enum ResizeModes

List of possible resizing modes that can be used when changing texture to content. Default is None. Note that to preserve original colors of input texture, this resizing is just pixel resize without any smoothing or interpolation.

ItemsNoResizingNo resizing is done. Resulting content is exactly same size as input texture.
 FitToWholeDisplayFit texture to display size. Resulting content is exactly same size as display where it will be added. Both shrinking and enlarging may be done and texture may lose its original aspect ratio.
 ShrinkKeepingAspectRatioShrink if needed to fit inside display while keeping aspect ratio. Resulting content may be smaller than display but will always fit inside display.


Static Methods

public static int[,] getContent (Texture2D texture, Display_Sprite targetDisplay)

Change texture to int[,] type content.

ParameterstextureTexture to convert. Make sure texture is set to be readable in Unity.
 targetDisplaySprite based display component of the DotMatrix where this content will be added. Palette to use will be read from this display.

ReturnsTwo dimensional int array defining states of dots on each row and column.


public static int[,] getContent (Texture2D texture, Display_UI targetDisplay)

Change texture to int[,] type content.

ParameterstextureTexture to convert. Make sure texture is set to be readable in Unity.
 targetDisplayImage based display component of the DotMatrix where this content will be added. Palette to use will be read from this display.

ReturnsTwo dimensional int array defining states of dots on each row and column.


public static int[,] getContent (Texture2D texture, Display_Sprite targetDisplay, ResizeModes resizeMode)

Change texture to int[,] type content, with possible resizing.

ParameterstextureTexture to convert. Make sure texture is set to be readable in Unity.
 targetDisplaySprite based display component of the DotMatrix where this content will be added. Palette to use will be read from this display, as well as display size if 'resizeMode' is other than ResizeModes.None.
 resizeModePossible resize mode, one of the values from enum ResizeModes.

ReturnsTwo dimensional int array defining states of dots on each row and column.


public static int[,] getContent (Texture2D texture, Display_UI targetDisplay, ResizeModes resizeMode)

Change texture to int[,] type content, with possible resizing.

ParameterstextureTexture to convert. Make sure texture is set to be readable in Unity.
 targetDisplayImage based display component of the DotMatrix where this content will be added. Palette to use will be read from this display, as well as display size if 'resizeMode' is other than ResizeModes.None.
 resizeModePossible resize mode, one of the values from enum ResizeModes.

ReturnsTwo dimensional int array defining states of dots on each row and column.