Unity Camera & Simple Image Editing by Puthut

478 views
295 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
478
On SlideShare
0
From Embeds
0
Number of Embeds
16
Actions
Shares
0
Downloads
4
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Unity Camera & Simple Image Editing by Puthut

  1. 1. @agatestudio Unity Camera Puthut Knight Agate Studio
  2. 2. ini apa ini apa
  3. 3.  Use WebCamTexture
  4. 4.  Set pixel ke Texture2D
  5. 5.  device.isFrontFacing
  6. 6.  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
  7. 7.  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)
  8. 8.  Resize  Rotate  Color Filter  Sepia
  9. 9.  GetPixels  Lalu…  SetPixels  Apply
  10. 10.  GetPixels  Digituin…  SetPixels  Apply  90
  11. 11.  Ya gitu-gitu juga sih
  12. 12.  Angka ajaib  Untuk greyscale juga ada byte gray = (byte)(.299 * c.R + .587 * c.G + .114 * c.B);
  13. 13.  http://g3zarstudios.com/blog/unity-camera- script-for-mobile-devices/  http://www.codeproject.com/Articles/33838 /Image-Processing-using-C

×