¡@

Home 

javascript Programming Glossary: sg

HTML5 Canvas Resize (Downscale) Image High Quality?

http://stackoverflow.com/questions/18922880/html5-canvas-resize-downscale-image-high-quality

Float32Array 3 sw sh target buffer Float32 rgb var sR 0 sG 0 sB 0 source's current point r g b untested var sA 0 source.. pixel sR sBuffer sIndex retrieving r g b for curr src px. sG sBuffer sIndex 1 sB sBuffer sIndex 2 untested handling alpha.. if sA continue if sA 0xFF sR sR sA 8 or use 256 instead sG sG sA 8 sB sB sA 8 if crossX crossY pixel does not cross..