Example #1
0
 public static void Region(PointI[] points)
 {
     if (points == null || points.Length < 3)
     {
         return;
     }
     ILU.iluRegioni(points, (uint)points.Length);
 }
Example #2
0
 public static void Initialize()
 {
     if (ILU._init)
     {
         return;
     }
     ILU.iluInit();
     ILU._init = true;
 }
Example #3
0
 internal static void AddRef()
 {
     lock (IL.s_sync)
     {
         if (IL.s_ref == 0)
         {
             IL.Initialize();
             ILU.Initialize();
         }
         ++IL.s_ref;
     }
 }
Example #4
0
 public static bool BlurAverage(int iterations)
 {
     return(ILU.iluBlurAverage((uint)iterations));
 }
Example #5
0
 public static SamplingFilter GetSamplingFilter()
 {
     return((SamplingFilter)ILU.iluGetInteger(9728U));
 }
Example #6
0
 public static int ColorsUsed()
 {
     return((int)ILU.iluColorsUsed());
 }
Example #7
0
 public static bool EnlargeImage(int xDimension, int yDimension, int zDimension)
 {
     return(ILU.iluEnlargeImage((uint)xDimension, (uint)yDimension, (uint)zDimension));
 }
Example #8
0
 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));
 }
Example #9
0
 public static string GetVersionNumber()
 {
     return(Marshal.PtrToStringAnsi(ILU.iluGetString(3554U)));
 }
Example #10
0
 public static string GetVendorName()
 {
     return(Marshal.PtrToStringAnsi(ILU.iluGetString(7936U)));
 }
Example #11
0
 public static bool Sharpen(float factor, int iterations)
 {
     return(ILU.iluSharpen(factor, (uint)iterations));
 }
Example #12
0
 public static bool SetLanguage(Language lang)
 {
     return(ILU.iluSetLanguage((uint)lang));
 }
Example #13
0
 public static bool Pixelize(int pixelSize)
 {
     return(ILU.iluPixelize((uint)pixelSize));
 }
Example #14
0
 public static bool Noisify(float tolerance)
 {
     return(ILU.iluNoisify(MemoryHelper.Clamp(tolerance, 0.0f, 1f)));
 }
Example #15
0
 public static bool Scale(int width, int height, int depth)
 {
     return(ILU.iluScale((uint)width, (uint)height, (uint)depth));
 }
Example #16
0
 public static bool BlurGaussian(int iterations)
 {
     return(ILU.iluBlurGaussian((uint)iterations));
 }
Example #17
0
 public static bool CompareImages(int otherImageID)
 {
     return(ILU.iluCompareImages((uint)otherImageID));
 }
Example #18
0
 public static void SetImagePlacement(Placement placement)
 {
     ILU.iluImageParameter(1792U, (uint)placement);
 }
Example #19
0
 public static bool EnlargeCanvas(int width, int height, int depth)
 {
     return(ILU.iluEnlargeCanvas((uint)width, (uint)height, (uint)depth));
 }
Example #20
0
 public static Placement GetImagePlacement()
 {
     return((Placement)ILU.iluGetInteger(1792U));
 }
Example #21
0
 public static string GetErrorString(ErrorType error)
 {
     return(Marshal.PtrToStringAnsi(ILU.iluGetErrorString((uint)error)));
 }
Example #22
0
 public static void SetSamplingFilter(SamplingFilter filter)
 {
     ILU.iluImageParameter(9728U, (uint)filter);
 }