image processing - smooth() method level parameter -
i have been checking code project of mine , saw interesting in papplet , pgraphics classes related smooth() methods
below piece of code pappplet.java
public void smooth() { if (recorder != null) recorder.smooth(); g.smooth(); } public void smooth(int level) { if (recorder != null) recorder.smooth(level); g.smooth(level); }
here both g , recorder objects instances of pgraphics.java class , in class, here smooth methods:
public void smooth() { smooth = true; } /** * * @param level either 2, 4, or 8 */ public void smooth(int level) { smooth = true; }
basically, setting different levels of smooth not seem working. have tried set different numbers 32 64 8 , on result didnt alter @ all. , can check api page on http://processing.org/reference/smooth_.html says smoothing levels should working, not.
can explain why pieces of code above dont levels although written in api?
you're not looking @ public api, code internal code compiling processing interpreter. so: welcome real world, documentation , code don't agree, when project ramping new, total revision release. if want answers developers want inquire them straight posting question on over new github code repo: https://github.com/processing/processing
(for future reference: api documented on http://processing.org/reference. if it's not mentioned there, if it's in source code, it's not part of api. it's in there create interpreter job when gets compiled java)
image-processing processing smooth java-api
No comments:
Post a Comment