Thread: Nw2png
View Single Post
  #12  
Old 06-24-2010, 06:38 PM
born2kill born2kill is offline
Mainly GS2+Java Scripter
Join Date: Nov 2006
Posts: 17
born2kill will become famous soon enough
Quote:
Originally Posted by WhiteDragon View Post
You could write it yourself :o. The weight for a given pixel using an 8-pixel window in Lanczos is [ sin(x*.25) / (x*.25) ] * [ sin(x*.25 / 8) / (x*.25/8) ]


Edit: Here is Chromium's implementation of Lanczos in C++ http://src.chromium.org/svn/trunk/sr..._operations.cc
Haha nvm im just using Bicubic untill there is something giving a better quality xD
(Even Bicubic is already perfect)

PHP Code:
g2d.setRenderingHintRenderingHints.KEY_INTERPOLATIONRenderingHints.VALUE_INTERPOLATION_BICUBIC ); 
ftw =o

Last edited by born2kill; 06-24-2010 at 08:32 PM..
Reply With Quote