RotateType = {}; RotateType.Left = 3; RotateType.Right = 1; FlipType = {}; FlipType.X = 4; FlipType.Y = 6; SkewDirection = {}; SkewDirection.Left = 0 SkewDirection.Right = 1 SkewDirection.Up = 2 SkewDirection.Down = 3 Colors = { Transparent = 16777215, AliceBlue = -984833, AntiqueWhite = -332841, Aqua = -16711681, Aquamarine = -8388652, Azure = -983041, Beige = -657956, Bisque = -6972, Black = -16777216, BlanchedAlmond = -5171, Blue = -16776961, BlueViolet = -7722014, Brown = -5952982, BurlyWood = -2180985, CadetBlue = -10510688, Chartreuse = -8388864, Chocolate = -2987746, Coral = -32944, CornflowerBlue = -10185235, Cornsilk = -1828, Crimson = -2354116, Cyan = -16711681, DarkBlue = -16777077, DarkCyan = -16741493, DarkGoldenrod = -4684277, DarkGray = -5658199, DarkGreen = -16751616, DarkKhaki = -4343957, DarkMagenta = -7667573, DarkOliveGreen = -11179217, DarkOrange = -29696, DarkOrchid = -6737204, DarkRed = -7667712, DarkSalmon = -1468806, DarkSeaGreen = -7357301, DarkSlateBlue = -12042869, DarkSlateGray = -13676721, DarkTurquoise = -16724271, DarkViolet = -7077677, DeepPink = -60269, DeepSkyBlue = -16728065, DimGray = -9868951, DodgerBlue = -14774017, Firebrick = -5103070, FloralWhite = -1296, ForestGreen = -14513374, Fuchsia = -65281, Gainsboro = -2302756, GhostWhite = -460545, Gold = -10496, Goldenrod = -2448096, Gray = -8355712, Green = -16744448, GreenYellow = -5374161, Honeydew = -983056, HotPink = -38476, IndianRed = -3318692, Indigo = -11861886, Ivory = -16, Khaki = -989556, Lavender = -1644806, LavenderBlush = -3851, LawnGreen = -8586240, LemonChiffon = -1331, LightBlue = -5383962, LightCoral = -1015680, LightCyan = -2031617, LightGoldenrodYellow = -329006, LightGreen = -7278960, LightGray = -2894893, LightPink = -18751, LightSalmon = -24454, LightSeaGreen = -14634326, LightSkyBlue = -7876870, LightSlateGray = -8943463, LightSteelBlue = -5192482, LightYellow = -32, Lime = -16711936, LimeGreen = -13447886, Linen = -331546, Magenta = -65281, Maroon = -8388608, MediumAquamarine = -10039894, MediumBlue = -16777011, MediumOrchid = -4565549, MediumPurple = -7114533, MediumSeaGreen = -12799119, MediumSlateBlue = -8689426, MediumSpringGreen = -16713062, MediumTurquoise = -12004916, MediumVioletRed = -3730043, MidnightBlue = -15132304, MintCream = -655366, MistyRose = -6943, Moccasin = -6987, NavajoWhite = -8531, Navy = -16777088, OldLace = -133658, Olive = -8355840, OliveDrab = -9728477, Orange = -23296, OrangeRed = -47872, Orchid = -2461482, PaleGoldenrod = -1120086, PaleGreen = -6751336, PaleTurquoise = -5247250, PaleVioletRed = -2396013, PapayaWhip = -4139, PeachPuff = -9543, Peru = -3308225, Pink = -16181, Plum = -2252579, PowderBlue = -5185306, Purple = -8388480, Red = -65536, RosyBrown = -4419697, RoyalBlue = -12490271, SaddleBrown = -7650029, Salmon = -360334, SandyBrown = -744352, SeaGreen = -13726889, SeaShell = -2578, Sienna = -6270419, Silver = -4144960, SkyBlue = -7876885, SlateBlue = -9807155, SlateGray = -9404272, Snow = -1286, SpringGreen = -16711809, SteelBlue = -12156236, Tan = -2968436, Teal = -16744320, Thistle = -2572328, Tomato = -40121, Turquoise = -12525360, Violet = -1146130, Wheat = -663885, White = -1, WhiteSmoke = -657931, Yellow = -256, YellowGreen = -6632142, }; FontStyle = { Regular = "Regular", Bold = "Bold", Italic = "Italic", Underline = "Underline", Strikeout = "Strikeout", }; image = {}; function image.Create(color, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Create", color..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawImage(imageFileA, imageFileB, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawImage", "\""..imageFileA.."\""..",".."\""..imageFileB.."\""..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawIcon(imageFile, iconFile, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawIcon", "\""..imageFile.."\""..",".."\""..iconFile.."\""..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawString(imageFile, string, fontFamily, emSize, fontStyle, color, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawString", "\""..imageFile.."\""..",".."\""..string.."\""..",".."\""..fontFamily.."\""..","..emSize..",".."\""..fontStyle.."\""..","..color..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawStringGradient(imageFile, string, fontFamily, emSize, fontStyle, color1, color2, angle, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawStringGradient", "\""..imageFile.."\""..",".."\""..string.."\""..",".."\""..fontFamily.."\""..","..emSize..",".."\""..fontStyle.."\""..","..color1 ..","..color2 ..","..angle..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawStringImage(imageFile, string, fontFamily, emSize, fontStyle, textureImage, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawStringImage", "\""..imageFile.."\""..",".."\""..string.."\""..",".."\""..fontFamily.."\""..","..emSize..",".."\""..fontStyle.."\""..",".."\""..textureImage.."\""..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawRectangle(imageFile, color, size, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawRectangle", "\""..imageFile.."\""..","..color..","..size..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawRectangleGradient(imageFile, color1, color2, angle, size, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawRectangleGradient", "\""..imageFile.."\""..","..color1 ..","..color2 ..","..angle..","..size..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawRectangleImage(imageFile, textureImage, size, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawRectangleImage", "\""..imageFile.."\""..",".."\""..textureImage.."\""..","..size..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawEllipse(imageFile, color, size, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawEllipse", "\""..imageFile.."\""..","..color..","..size..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawEllipseGradient(imageFile, color1, color2, angle, size, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawEllipseGradient", "\""..imageFile.."\""..","..color1 ..","..color2 ..","..angle..","..size..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawEllipseImage(imageFile, textureImage, size, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawEllipseImage", "\""..imageFile.."\""..",".."\""..textureImage.."\""..","..size..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawLine(imageFile, color, size, x1, y1, x2, y2) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawLine", "\""..imageFile.."\""..","..color..","..size..","..x1..","..y1..","..x2..","..y2, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawLineGradient(imageFile, color1, color2, angle, size, x1, y1, x2, y2) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawLineGradient", "\""..imageFile.."\""..","..color1 ..","..color2 ..","..angle..","..size..","..x1..","..y1..","..x2..","..y2, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawLineImage(imageFile, textureImage, size, x1, y1, x2, y2) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawLineImage", "\""..imageFile.."\""..",".."\""..textureImage.."\""..","..size..","..x1..","..y1..","..x2..","..y2, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawLines(imageFile, color, size, points) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawLines", "\""..imageFile.."\""..","..color..","..size..",".."\""..points.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawLinesGradient(imageFile, color1, color2, angle, size, points) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawLinesGradient", "\""..imageFile.."\""..","..color1 ..","..color2 ..","..angle..","..size..",".."\""..points.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.DrawLinesImage(imageFile, textureImage, size, points) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "DrawLinesImage", "\""..imageFile.."\""..",".."\""..textureImage.."\""..","..size..",".."\""..points.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.FillRectangle(imageFile, color, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "FillRectangle", "\""..imageFile.."\""..","..color..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.FillRectangleGradient(imageFile, color1, color2, angle, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "FillRectangleGradient", "\""..imageFile.."\""..","..color1 ..","..color2 ..","..angle..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.FillRectangleImage(imageFile, textureImage, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "FillRectangleImage", "\""..imageFile.."\""..",".."\""..textureImage.."\""..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.FillEllipse(imageFile, color, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "FillEllipse", "\""..imageFile.."\""..","..color..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.FillEllipseGradient(imageFile, color1, color2, angle, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "FillEllipseGradient", "\""..imageFile.."\""..","..color1 ..","..color2 ..","..angle..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.FillEllipseImage(imageFile, textureImage, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "FillEllipseImage", "\""..imageFile.."\""..",".."\""..textureImage.."\""..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.Thumbnail(imageFile, size) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Thumbnail", "\""..imageFile.."\""..","..size, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.Resize(imageFile, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Resize", "\""..imageFile.."\""..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.Crop(imageFile, x, y, width, height) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Crop", "\""..imageFile.."\""..","..x..","..y..","..width..","..height, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.Rotate(imageFile, rotateType) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Rotate", "\""..imageFile.."\""..","..rotateType, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.Flip(imageFile, flipType) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Flip", "\""..imageFile.."\""..","..flipType, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.Skew(imageFile, percent, skewDirection) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "Skew", "\""..imageFile.."\""..","..percent..","..skewDirection, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.View(imageFile) DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "View", "\""..imageFile.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.SaveAs(sourceImageFile, destinationImageFile) DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "SaveAs", "\""..sourceImageFile.."\""..",".."\""..destinationImageFile.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.GetFormat(imageFile) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "GetFormat", "\""..imageFile.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.GetSize(imageFile) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "GetSize", "\""..imageFile.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.GetResolution(imageFile) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "GetResolution", "\""..imageFile.."\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.SetResolution(imageFile, xDpi, yDpi) return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "SetResolution", "\""..imageFile.."\""..","..xDpi..","..yDpi, DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end function image.GetError() return DLL.CallFunction("AutoPlay\\Docs\\Image.dll", "GetError", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL); end