C# Class uP5.PImage

Inheritance: UnityEngine.MonoBehaviour
Datei anzeigen Open project: nryota/uProcessing Class Usage Examples

Public Properties

Property Type Description
customData System.Object
path string
pixels UnityEngine.Color32[]
texture UnityEngine.Texture2D
width int

Public Methods

Method Description
clear ( Color col ) : void
create ( int width, int height, TextureFormat texFormat = TextureFormat.ARGB32 ) : void
get ( float x, float y ) : Color
load ( PGraphics g, string path ) : void
loadPixels ( ) : bool
set ( PImage img ) : void
set ( Texture2D tex ) : void
set ( float x, float y, Color col, bool isApply = true ) : void
updatePixels ( ) : void

Private Methods

Method Description
loadFromLocalFile ( string path ) : bool
loadFromResources ( PGraphics g, string path ) : bool
loadFromURL ( string url ) : IEnumerator

Method Details

clear() public method

public clear ( Color col ) : void
col UnityEngine.Color
return void

create() public method

public create ( int width, int height, TextureFormat texFormat = TextureFormat.ARGB32 ) : void
width int
height int
texFormat TextureFormat
return void

get() public method

public get ( float x, float y ) : Color
x float
y float
return UnityEngine.Color

load() public method

public load ( PGraphics g, string path ) : void
g PGraphics
path string
return void

loadPixels() public method

public loadPixels ( ) : bool
return bool

set() public method

public set ( PImage img ) : void
img PImage
return void

set() public method

public set ( Texture2D tex ) : void
tex UnityEngine.Texture2D
return void

set() public method

public set ( float x, float y, Color col, bool isApply = true ) : void
x float
y float
col UnityEngine.Color
isApply bool
return void

updatePixels() public method

public updatePixels ( ) : void
return void

Property Details

customData public_oe property

public System.Object customData
return System.Object

path public_oe property

public string path
return string

pixels public_oe property

public Color32[],UnityEngine pixels
return UnityEngine.Color32[]

texture public_oe property

public Texture2D,UnityEngine texture
return UnityEngine.Texture2D

width public_oe property

public int width
return int