Oberon Community Platform Forum

Development => General => Topic started by: soren renner on March 15, 2008, 02:53:27 AM



Title: Image Scaling
Post by: soren renner on March 15, 2008, 02:53:27 AM
There are some fast image scaling and smoothing procedures, I think in Raster.Mod, which I looked at some time ago. I want to scale an [n,m] image to [2n,2m] with smooth interpolated values, and those procedures are faster than the (simple and easy) one I could write. Does anyone know which procedure I want and how to call it?


Title: Re: Image Scaling
Post by: staubesv on March 15, 2008, 02:19:08 PM
Have a look at the procedure I386.WMRasterScale.Scale. Use ScaleBilinear as actual parameter for the scaleMode parameter. This procedure is also used by the WMGraphics.BufferCanvas.ScaleImage so an example of how to call it can be found in WMWindowManager.BufferWindow.Draw.


Title: Re: Image Scaling
Post by: soren renner on March 16, 2008, 12:52:38 AM
Thank you. That, like, totally works.