Oberon Community Platform Forum
December 07, 2019, 08:20:49 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Image Scaling  (Read 3690 times)
soren renner
Global Moderator
Full Member
*****
Posts: 216



« 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?
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #1 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.
Logged
soren renner
Global Moderator
Full Member
*****
Posts: 216



« Reply #2 on: March 16, 2008, 12:52:38 AM »

Thank you. That, like, totally works.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!