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 ResizeModes | List 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. Items | NoResizing | No resizing is done. Resulting content is exactly same size as input texture. | | FitToWholeDisplay | Fit 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. | | ShrinkKeepingAspectRatio | Shrink 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. Parameters | texture | Texture to convert. Make sure texture is set to be readable in Unity. | | targetDisplay | Sprite based display component of the DotMatrix where this content will be added. Palette to use will be read from this display. |
Returns | Two 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. Parameters | texture | Texture to convert. Make sure texture is set to be readable in Unity. | | targetDisplay | Image based display component of the DotMatrix where this content will be added. Palette to use will be read from this display. |
Returns | Two 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. Parameters | texture | Texture to convert. Make sure texture is set to be readable in Unity. | | targetDisplay | Sprite 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. | | resizeMode | Possible resize mode, one of the values from enum ResizeModes. |
Returns | Two 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. Parameters | texture | Texture to convert. Make sure texture is set to be readable in Unity. | | targetDisplay | Image 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. | | resizeMode | Possible resize mode, one of the values from enum ResizeModes. |
Returns | Two dimensional int array defining states of dots on each row and column. |
|