public static void Region(PointI[] points) { if (points == null || points.Length < 3) { return; } ILU.iluRegioni(points, (uint)points.Length); }
public static void Initialize() { if (ILU._init) { return; } ILU.iluInit(); ILU._init = true; }
internal static void AddRef() { lock (IL.s_sync) { if (IL.s_ref == 0) { IL.Initialize(); ILU.Initialize(); } ++IL.s_ref; } }
public static bool BlurAverage(int iterations) { return(ILU.iluBlurAverage((uint)iterations)); }
public static SamplingFilter GetSamplingFilter() { return((SamplingFilter)ILU.iluGetInteger(9728U)); }
public static int ColorsUsed() { return((int)ILU.iluColorsUsed()); }
public static bool EnlargeImage(int xDimension, int yDimension, int zDimension) { return(ILU.iluEnlargeImage((uint)xDimension, (uint)yDimension, (uint)zDimension)); }
public static bool Crop(int xOffset, int yOffset, int zOffset, int width, int height, int depth) { return(ILU.iluCrop((uint)xOffset, (uint)yOffset, (uint)zOffset, (uint)width, (uint)height, (uint)depth)); }
public static string GetVersionNumber() { return(Marshal.PtrToStringAnsi(ILU.iluGetString(3554U))); }
public static string GetVendorName() { return(Marshal.PtrToStringAnsi(ILU.iluGetString(7936U))); }
public static bool Sharpen(float factor, int iterations) { return(ILU.iluSharpen(factor, (uint)iterations)); }
public static bool SetLanguage(Language lang) { return(ILU.iluSetLanguage((uint)lang)); }
public static bool Pixelize(int pixelSize) { return(ILU.iluPixelize((uint)pixelSize)); }
public static bool Noisify(float tolerance) { return(ILU.iluNoisify(MemoryHelper.Clamp(tolerance, 0.0f, 1f))); }
public static bool Scale(int width, int height, int depth) { return(ILU.iluScale((uint)width, (uint)height, (uint)depth)); }
public static bool BlurGaussian(int iterations) { return(ILU.iluBlurGaussian((uint)iterations)); }
public static bool CompareImages(int otherImageID) { return(ILU.iluCompareImages((uint)otherImageID)); }
public static void SetImagePlacement(Placement placement) { ILU.iluImageParameter(1792U, (uint)placement); }
public static bool EnlargeCanvas(int width, int height, int depth) { return(ILU.iluEnlargeCanvas((uint)width, (uint)height, (uint)depth)); }
public static Placement GetImagePlacement() { return((Placement)ILU.iluGetInteger(1792U)); }
public static string GetErrorString(ErrorType error) { return(Marshal.PtrToStringAnsi(ILU.iluGetErrorString((uint)error))); }
public static void SetSamplingFilter(SamplingFilter filter) { ILU.iluImageParameter(9728U, (uint)filter); }