Hackpads are smart collaborative documents. .
370 days ago
0 / 5
Unfiled. Edited by 張晏誠 370 days ago
  • Compositing Digital Images導讀
1. Introduction
  • 將圖像分開渲染可以節省大量時間,如果某一部分的着色出錯也不會導致整個圖像的重新渲染
  • 將圖形分成若干元素(elements),每個元素有一個關聯的matte(不知道中文該怎麼翻譯@@),要覆蓋的(coverage)信息指定了元素的形狀。使用mattes將這些元素合成(compositing)爲最終的圖像。
2. The Alpha Channel
  • 需要有獨立的組件(component)來保存matte的信息,也就是每一個元素在每一個像素(pixel)的覆蓋範圍。但是RGB組件只包含色彩信息,爲了可以把元素放在任意的背景位置,且爲了抗鋸齒的目的,對應色彩通道(channel)同等的分辨率,作者定義了alpha通道,alpha爲0表示不覆蓋,1表示完全覆蓋,分數對應覆蓋一部分。
  • 爲了避免例如(1, 0, 0, 0.5)中紅色1要乘以0.5的透明度這種計算,有一個更好的解決方法是用(0.5, 0, 0, 0.5)這樣提前乘α的方式來表示。因此(r, g, b, α)表示的含義是一個像素被顏色(r/α, g/α, b/α) α程度的覆蓋。要注意RGB通道還是記錄了當α爲1時的真實色彩,邊緣隨着α的值線性變暗,直到α爲0時變爲黑色。RGBA的輪廓邊緣因此可以在RGB顯示器上表現的抗鋸齒。
650 days ago
4 / 7
Unfiled. Edited by John Chou 650 days ago
  • μGUI Introduction
What is μGUI
µGUI is a free and open source graphic library for embedded systems. It is platform-independent and can be easily ported to almost any microcontroller system. As long as the display is capable of showing graphics, µGUI is not restricted to a certain display technology. Therefore, display technologies such as LCD, TFT, E-Paper, LED or OLED are supported. The whole module consists of two files: ugui.c and ugui.h.
714 days ago
Unfiled. Edited by Jim Huang 714 days ago
Reference platform: STM32F429i-Discovery

Stop sharing the collection with ?

This pad is open to "", so will still be able to access it.
gui Feed

Contact Support

Please check out our How-to Guide and FAQ first to see if your question is already answered! :)

If you have a feature request, please add it to this pad. Thanks!

Log in