mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 06:12:34 -06:00
Some imp docs for subpixel rendering
git-svn-id: svn://ultimatepp.org/upp/trunk@900 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
e16d4ea2da
commit
abd211dfbe
1 changed files with 14 additions and 2 deletions
|
|
@ -8,10 +8,22 @@ topic "";
|
|||
[s1;%- &]
|
||||
[s2;:SubpixelFiller`:`:Write`(int`):%- [@(0.0.255) void]_[* Write]([@(0.0.255) int]_[*@3 len])
|
||||
&]
|
||||
[s3; This function flushes the content of filtered subpixel buffer.&]
|
||||
[s0; Important note: due to rounding errors during filtering, sometimes
|
||||
[s3; This function writes the filtered subpixel buffer to RGBA output,
|
||||
performing per`-channel (subpixel) alpha blending. Note that
|
||||
it is only possible to do correct per`-channel blending when
|
||||
target is opaque (a `=`= 255). If it is not, normal anti`-aliasing
|
||||
is used, using average.&]
|
||||
[s3; Important note: due to rounding errors during filtering, sometimes
|
||||
the subpixel value can be 257. This is remedied by using 257
|
||||
instead of 256 in the pixel blending command.&]
|
||||
[s0; &]
|
||||
[s4; &]
|
||||
[s1;%- &]
|
||||
[s2;:SubpixelFiller`:`:RenderN`(int`,int`,int`):%- [@(0.0.255) void]_[* RenderN]([@(0.0.255) i
|
||||
nt]_[*@3 val], [@(0.0.255) int]_[*@3 h], [@(0.0.255) int]_[*@3 n])&]
|
||||
[s3; This function adds 1 `- 6 val values to filtered subpixel buffer
|
||||
in single pass (6 is just enough needed for Render optimizations).
|
||||
Case variants are created by adding shifted Render filtering
|
||||
procedures.&]
|
||||
[s4; &]
|
||||
[s0; ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue