public ActionResult changebrightnes(int brightnes, string color) { var cm = new ColorModelM(); cm.changebrightnes(brightnes, color); return(View()); }
public point pixel(int r, int g, int b) { //add code double h, s, l; ColorModelM.RgbToHls(r, g, b, out h, out l, out s); var p = new point() { h = h, l = l, s = s }; return(p); }
public ActionResult convert(HttpPostedFileBase postedFile) { string filePath = ""; filePath = Server.MapPath("~/Resourses/images/"); if (postedFile == null) { postedFile = Request.Files["userFile"]; } filePath = filePath + "rgb.jpg"; postedFile.SaveAs(filePath); var cm = new ColorModelM(); cm.convertImg(); return(RedirectToAction("Index")); }