Tao.Sdl SDK Documentation

SdlGfx.shrinkSurface Method 

Shrinks a 32bit or 8bit 'src' surface ti a newly created 'dst' surface. 'factorx' and 'factory' are the shrinking ratios (i.e. 2=1/2 the size, 3=1/3 the size, etc.) The destination surface is antialiased by averaging the source box RGBA or Y information. If the surface is not 8bit or 32bit RGBA/ABGR it will be converted into a 32bit RGBA format on the fly.

[Visual Basic]
Public Shared Function shrinkSurface( _
   ByVal src As IntPtr, _
   ByVal factorx As Integer, _
   ByVal factory As Integer _
) As IntPtr
[C#]
public static IntPtr shrinkSurface(
   IntPtr src,
   int factorx,
   int factory
);

Parameters

src
factorx
factory

Return Value

See Also

SdlGfx Class | Tao.Sdl Namespace