public static PyImage CreateImage(int width, int height, ImageType type) { string size = width.ToString() + "," + height.ToString(); string id = ""; switch (type) { case ImageType.RGBA: id = PyUtils.ExecuteMethod("create_image", "RGBA," + size); break; case ImageType.BGRA: id = PyUtils.ExecuteMethod("create_image", "BGRA," + size); break; case ImageType.PRGBA: id = PyUtils.ExecuteMethod("create_image", "PRGBA," + size); break; } return(new PyImage(id, type)); }
public PyBGRAImage convert_to_bgra() { string id = PyUtils.ExecuteMethod("conv_to_bgra", this.ID); return(new PyBGRAImage(id)); }
public static Renmas create() { string id = PyUtils.ExecuteMethod("create_renderer", ""); return(new Renmas(id)); }