C# Class TextureDrawer, RPGQuest

Inheritance: MonoBehaviour
ファイルを表示 Open project: hughrogers/RPGQuest Class Usage Examples

Public Methods

Method Description
AddImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
AddPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
AddTexture ( Texture2D texture, Rect bounds, Color colors ) : Texture2D
AddTexture ( Texture2D texture, Rect bounds, Texture2D addTex ) : Texture2D
ClearTexture ( Texture2D texture ) : Texture2D
ColorLerpUnclamped ( Color c1, Color c2, float value ) : Color
Colorize ( Color colors, Color tint ) : Color[]
ColorizeAlphas ( float alphas, Color tint ) : Color[]
CopyTexture ( Texture2D texture ) : Texture2D
DivideAlpha ( Color colors, float alpha ) : Color[]
GetCleanTexture ( int width, int height ) : Texture2D
GetMaskTexture ( int width, int height, Rect maskBounds ) : Texture2D
GetNewTexture ( int width, int height ) : Texture2D
GetNextPowerOfTwo ( float number ) : int
GetNextPowerOfTwo ( int number ) : int
GetPixels ( Texture2D texture, int x, int y, int w, int h ) : Color[]
GetScaledColors ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
GetScaledColorsBilinear ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
GetScaledColorsPoint ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
GetScaledPixels ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Color[]
GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Rect bounds, ScaleMode, mode ) : Color[]
GetScaledPixels ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Color[]
GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Vector2 size, ScaleMode, mode ) : Color[]
GetScaledSize ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Vector2
GetScaledSize ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Vector2
GetSecuredPixels ( Texture2D texture, int x, int y, int width, int height ) : Color[]
MultiplyAlpha ( Color colors, float alpha ) : Color[]
PasteColors ( Color topPixels, Color bottomPixels ) : Color[]
ReplaceColors ( Color colors, Color oldColor, Color newColor ) : Color[]
SetImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
SetPixelColors ( Texture2D texture, Rect bounds, Color c ) : Texture2D
SetPixels ( Texture2D texture, Color colors, Rect bounds ) : Texture2D
SetPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
SetPixels ( Texture2D texture, int sx, int sy, Texture2D texture2, int x, int y, int w, int h ) : Texture2D

Method Details

AddImageTexture() public static method

public static AddImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
bg SkinBG,
return UnityEngine.Texture2D

AddPixels() public static method

public static AddPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
texture UnityEngine.Texture2D
colors Color
x int
y int
w int
h int
return UnityEngine.Texture2D

AddTexture() public static method

public static AddTexture ( Texture2D texture, Rect bounds, Color colors ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
colors Color
return UnityEngine.Texture2D

AddTexture() public static method

public static AddTexture ( Texture2D texture, Rect bounds, Texture2D addTex ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
addTex UnityEngine.Texture2D
return UnityEngine.Texture2D

ClearTexture() public static method

public static ClearTexture ( Texture2D texture ) : Texture2D
texture UnityEngine.Texture2D
return UnityEngine.Texture2D

ColorLerpUnclamped() public static method

public static ColorLerpUnclamped ( Color c1, Color c2, float value ) : Color
c1 Color
c2 Color
value float
return Color

Colorize() public static method

public static Colorize ( Color colors, Color tint ) : Color[]
colors Color
tint Color
return Color[]

ColorizeAlphas() public static method

public static ColorizeAlphas ( float alphas, Color tint ) : Color[]
alphas float
tint Color
return Color[]

CopyTexture() public static method

public static CopyTexture ( Texture2D texture ) : Texture2D
texture UnityEngine.Texture2D
return UnityEngine.Texture2D

DivideAlpha() public static method

public static DivideAlpha ( Color colors, float alpha ) : Color[]
colors Color
alpha float
return Color[]

GetCleanTexture() public static method

public static GetCleanTexture ( int width, int height ) : Texture2D
width int
height int
return UnityEngine.Texture2D

GetMaskTexture() public static method

public static GetMaskTexture ( int width, int height, Rect maskBounds ) : Texture2D
width int
height int
maskBounds Rect
return UnityEngine.Texture2D

GetNewTexture() public static method

public static GetNewTexture ( int width, int height ) : Texture2D
width int
height int
return UnityEngine.Texture2D

GetNextPowerOfTwo() public static method

public static GetNextPowerOfTwo ( float number ) : int
number float
return int

GetNextPowerOfTwo() public static method

public static GetNextPowerOfTwo ( int number ) : int
number int
return int

GetPixels() public static method

public static GetPixels ( Texture2D texture, int x, int y, int w, int h ) : Color[]
texture UnityEngine.Texture2D
x int
y int
w int
h int
return Color[]

GetScaledColors() public static method

public static GetScaledColors ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
colors Color
oldWidth int
oldHeight int
newWidth int
newHeight int
return Color[]

GetScaledColorsBilinear() public static method

public static GetScaledColorsBilinear ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
colors Color
oldWidth int
oldHeight int
newWidth int
newHeight int
return Color[]

GetScaledColorsPoint() public static method

public static GetScaledColorsPoint ( Color colors, int oldWidth, int oldHeight, int newWidth, int newHeight ) : Color[]
colors Color
oldWidth int
oldHeight int
newWidth int
newHeight int
return Color[]

GetScaledPixels() public static method

public static GetScaledPixels ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
bounds Rect
mode ScaleMode,
return Color[]

GetScaledPixels() public static method

public static GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Rect bounds, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
scaledSize Vector2
bounds Rect
mode ScaleMode,
return Color[]

GetScaledPixels() public static method

public static GetScaledPixels ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
size Vector2
mode ScaleMode,
return Color[]

GetScaledPixels() public static method

public static GetScaledPixels ( Texture2D texture, Vector2 scaledSize, Vector2 size, ScaleMode, mode ) : Color[]
texture UnityEngine.Texture2D
scaledSize Vector2
size Vector2
mode ScaleMode,
return Color[]

GetScaledSize() public static method

public static GetScaledSize ( Texture2D texture, Rect bounds, ScaleMode, mode ) : Vector2
texture UnityEngine.Texture2D
bounds Rect
mode ScaleMode,
return Vector2

GetScaledSize() public static method

public static GetScaledSize ( Texture2D texture, Vector2 size, ScaleMode, mode ) : Vector2
texture UnityEngine.Texture2D
size Vector2
mode ScaleMode,
return Vector2

GetSecuredPixels() public static method

public static GetSecuredPixels ( Texture2D texture, int x, int y, int width, int height ) : Color[]
texture UnityEngine.Texture2D
x int
y int
width int
height int
return Color[]

MultiplyAlpha() public static method

public static MultiplyAlpha ( Color colors, float alpha ) : Color[]
colors Color
alpha float
return Color[]

PasteColors() public static method

public static PasteColors ( Color topPixels, Color bottomPixels ) : Color[]
topPixels Color
bottomPixels Color
return Color[]

ReplaceColors() public static method

public static ReplaceColors ( Color colors, Color oldColor, Color newColor ) : Color[]
colors Color
oldColor Color
newColor Color
return Color[]

SetImageTexture() public static method

public static SetImageTexture ( Texture2D texture, Rect bounds, SkinBG, bg ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
bg SkinBG,
return UnityEngine.Texture2D

SetPixelColors() public static method

public static SetPixelColors ( Texture2D texture, Rect bounds, Color c ) : Texture2D
texture UnityEngine.Texture2D
bounds Rect
c Color
return UnityEngine.Texture2D

SetPixels() public static method

public static SetPixels ( Texture2D texture, Color colors, Rect bounds ) : Texture2D
texture UnityEngine.Texture2D
colors Color
bounds Rect
return UnityEngine.Texture2D

SetPixels() public static method

public static SetPixels ( Texture2D texture, Color colors, int x, int y, int w, int h ) : Texture2D
texture UnityEngine.Texture2D
colors Color
x int
y int
w int
h int
return UnityEngine.Texture2D

SetPixels() public static method

public static SetPixels ( Texture2D texture, int sx, int sy, Texture2D texture2, int x, int y, int w, int h ) : Texture2D
texture UnityEngine.Texture2D
sx int
sy int
texture2 UnityEngine.Texture2D
x int
y int
w int
h int
return UnityEngine.Texture2D