C# Class WhiteCore.Modules.WorldMap.ImageUtils

Show file Open project: WhiteCoreSim/WhiteCore-Dev Class Usage Examples

Public Methods

Method Description
Bilinear ( float v00, float v01, float v10, float v11, float xPercent, float yPercent ) : float

Performs bilinear interpolation between four values

ResizeImage ( Image image, int width, int height ) : Bitmap

Performs a high quality image resize

Method Details

Bilinear() public static method

Performs bilinear interpolation between four values
public static Bilinear ( float v00, float v01, float v10, float v11, float xPercent, float yPercent ) : float
v00 float First, or top left value
v01 float Second, or top right value
v10 float Third, or bottom left value
v11 float Fourth, or bottom right value
xPercent float Interpolation value on the X axis, between 0.0 and 1.0
yPercent float Interpolation value on the Y axis, between 0.0 and 1.0
return float

ResizeImage() public static method

Performs a high quality image resize
public static ResizeImage ( Image image, int width, int height ) : Bitmap
image Image Image to resize
width int New width
height int New height
return System.Drawing.Bitmap