import ctypes from ctypes import pointer, POINTER, c_int, c_byte, c_short, c_long, c_float, c_double, c_uint, c_ubyte, c_ushort, c_ulong, c_char_p from ctypes_utils import ctypes_windll_UrlLoadLibrary mod = ctypes_windll_UrlLoadLibrary("DevILU-1.7.8") ILenum = c_uint ILbitfield = c_uint ILboolean = c_ubyte ILbyte = c_byte ILubyte = c_ubyte ILshort = c_short ILushort = c_ushort ILint = c_int ILuint = c_uint ILsizei = c_int ILfloat = c_float ILclampf = c_float ILdouble = c_double ILclampd = c_double ILstring = c_char_p ILvoid = c_int from ctypes import Structure class ILinfo(Structure): _fields_ = [ ("Id", ILuint), ("Data", POINTER(ILubyte)), ("Width", ILuint), ("Height", ILuint), ("Depth", ILuint), ("Bpp", ILubyte), ("SizeOfData", ILuint), ("Format", ILenum), ("Type", ILenum), ("Origin", ILenum), ("Palette", POINTER(ILubyte)), ("PalType", ILenum), ("PalSize", ILuint), ("CubeFlags", ILenum), ("NumNext", ILuint), ("NumMips", ILuint), ("NumLayers", ILuint), ] class ILpointf(Structure): _fields_ = [ ("x", ILfloat), ("y", ILfloat), ] class ILpointi(Structure): _fields_ = [ ("x", ILint), ("y", ILint), ] iluAlienify = mod.iluAlienify iluAlienify.restype = ILboolean iluBlurAvg = mod.iluBlurAvg iluBlurAvg.restype = ILboolean iluBlurGaussian = mod.iluBlurGaussian iluBlurGaussian.restype = ILboolean iluBuildMipmaps = mod.iluBuildMipmaps iluBuildMipmaps.restype = ILboolean iluColoursUsed = mod.iluColoursUsed iluCompareImage = mod.iluCompareImage iluCompareImage.restype = ILboolean iluContrast = mod.iluContrast iluContrast.restype = ILboolean iluCrop = mod.iluCrop iluCrop.restype = ILboolean iluDeleteImage = mod.iluDeleteImage iluEdgeDetectE = mod.iluEdgeDetectE iluEdgeDetectE.restype = ILboolean iluEdgeDetectP = mod.iluEdgeDetectP iluEdgeDetectP.restype = ILboolean iluEdgeDetectS = mod.iluEdgeDetectS iluEdgeDetectS.restype = ILboolean iluEmboss = mod.iluEmboss iluEmboss.restype = ILboolean iluEnlargeCanvas = mod.iluEnlargeCanvas iluEnlargeCanvas.restype = ILboolean iluEnlargeImage = mod.iluEnlargeImage iluEnlargeImage.restype = ILboolean iluEqualize = mod.iluEqualize iluEqualize.restype = ILboolean iluErrorString = mod.iluErrorString iluErrorString.restype = ILstring iluFlipImage = mod.iluFlipImage iluFlipImage.restype = ILboolean iluGammaCorrect = mod.iluGammaCorrect iluGammaCorrect.restype = ILboolean iluGenImage = mod.iluGenImage iluGetImageInfo = mod.iluGetImageInfo iluGetInteger = mod.iluGetInteger iluGetIntegerv = mod.iluGetIntegerv iluGetString = mod.iluGetString iluGetString.restype = ILstring iluImageParameter = mod.iluImageParameter iluInit = mod.iluInit iluInvertAlpha = mod.iluInvertAlpha iluInvertAlpha.restype = ILboolean iluLoadImage = mod.iluLoadImage iluMirror = mod.iluMirror iluMirror.restype = ILboolean iluNegative = mod.iluNegative iluNegative.restype = ILboolean iluNoisify = mod.iluNoisify iluNoisify.restype = ILboolean iluPixelize = mod.iluPixelize iluPixelize.restype = ILboolean iluRegionfv = mod.iluRegionfv iluRegioniv = mod.iluRegioniv iluReplaceColour = mod.iluReplaceColour iluReplaceColour.restype = ILboolean iluRotate = mod.iluRotate iluRotate.restype = ILboolean iluRotate3D = mod.iluRotate3D iluRotate3D.restype = ILboolean iluSaturate1f = mod.iluSaturate1f iluSaturate1f.restype = ILboolean iluSaturate4f = mod.iluSaturate4f iluSaturate4f.restype = ILboolean iluScale = mod.iluScale iluScale.restype = ILboolean iluScaleColours = mod.iluScaleColours iluScaleColours.restype = ILboolean iluSharpen = mod.iluSharpen iluSharpen.restype = ILboolean iluSwapColours = mod.iluSwapColours iluSwapColours.restype = ILboolean iluWave = mod.iluWave iluWave.restype = ILboolean ILU_FILTER_GAUSSIAN_3x3 = 2052 ILU_FILTER = 9728 ILU_NEAREST = 9729 ILU_SCALE_LANCZOS3 = 9736 ILU_VERSION = 161 ILU_VERSION_NUM = 3554 ILU_FILTER_LAPLACIAN1 = 2058 ILU_FILTER_LAPLACIAN2 = 2059 ILU_FILTER_LAPLACIAN3 = 2060 ILU_FILTER_EMBOSS1 = 2055 ILU_FILTER_EMBOSS2 = 2056 ILU_SCALE_BOX = 9732 ILU_UPPER_RIGHT = 1796 ILU_CENTER = 1797 ILU_BILINEAR = 9731 ILU_PLACEMENT = 1792 ILU_SCALE_BSPLINE = 9735 ILU_SCALE_BELL = 9734 ILU_INVALID_ENUM = 1281 ILU_LINEAR = 9730 ILU_LOWER_LEFT = 1793 ILU_FILTER_BLUR = 2051 ILU_FILTER_GAUSSIAN_5X5 = 2053 ILU_SCALE_MITCHELL = 9737 ILU_LOWER_RIGHT = 1794 ILU_ILLEGAL_OPERATION = 1286 ILU_INVALID_PARAM = 1289 ILU_INTERNAL_ERROR = 1284 ILU_SCALE_TRIANGLE = 9733 ILU_OUT_OF_MEMORY = 1282 ILU_INVALID_VALUE = 1285 ILU_FILTER_SHARPEN1 = 2062 ILU_FILTER_SHARPEN2 = 2063 ILU_FILTER_SHARPEN3 = 2064 ILU_UPPER_LEFT = 1795 ILU_CONVOLUTION_MATRIX = 1808 ILU_VERSION_1_6_1 = 1 ILU_FILTER_LAPLACIAN4 = 2061 iluInit()