unity camera & simple image editing by puthut

Post on 14-May-2015

146 Views

Category:

Education

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

@agatestudio

Unity Camera

Puthut

Knight

Agate Studio

ini apa ini apa

Use WebCamTexture

Set pixel ke Texture2D

device.isFrontFacing

Image yang diterima dari kamera ter-rotate 90. Harus dirotate sebelum didisplay atau disimpan

Kamera Depan: selain rotate, image juga di-flip ◦ Android : flip horizontal

◦ iOS : flip vertical

Class for texture handling.

Use this to create textures on the fly or to modify existing texture assets.

GetPixel – GetPixels – GetPixels32

SetPixel – SetPixels – SetPixels32

Apply

EncodeToPNG – EncodeToJPG (baru)

Resize

Rotate

Color Filter

Sepia

GetPixels

Lalu…

SetPixels

Apply

GetPixels

Digituin…

SetPixels

Apply

90

Ya gitu-gitu juga sih

Angka ajaib

Untuk greyscale juga ada byte gray = (byte)(.299 * c.R + .587 * c.G + .114 * c.B);

top related