C# Класс uP5.PImage

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
customData System.Object
path string
pixels UnityEngine.Color32[]
texture UnityEngine.Texture2D
width int

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
loadFromLocalFile ( string path ) : bool
loadFromResources ( PGraphics g, string path ) : bool
loadFromURL ( string url ) : IEnumerator

Описание методов

clear() публичный Метод

public clear ( Color col ) : void
col UnityEngine.Color
Результат void

create() публичный Метод

public create ( int width, int height, TextureFormat texFormat = TextureFormat.ARGB32 ) : void
width int
height int
texFormat TextureFormat
Результат void

get() публичный Метод

public get ( float x, float y ) : Color
x float
y float
Результат UnityEngine.Color

load() публичный Метод

public load ( PGraphics g, string path ) : void
g PGraphics
path string
Результат void

loadPixels() публичный Метод

public loadPixels ( ) : bool
Результат bool

set() публичный Метод

public set ( PImage img ) : void
img PImage
Результат void

set() публичный Метод

public set ( Texture2D tex ) : void
tex UnityEngine.Texture2D
Результат void

set() публичный Метод

public set ( float x, float y, Color col, bool isApply = true ) : void
x float
y float
col UnityEngine.Color
isApply bool
Результат void

updatePixels() публичный Метод

public updatePixels ( ) : void
Результат void

Описание свойств

customData публичное свойство

public System.Object customData
Результат System.Object

path публичное свойство

public string path
Результат string

pixels публичное свойство

public Color32[],UnityEngine pixels
Результат UnityEngine.Color32[]

texture публичное свойство

public Texture2D,UnityEngine texture
Результат UnityEngine.Texture2D

width публичное свойство

public int width
Результат int