c# - WebImage Crop After Resize dont work -


i upload file , after upload base on info got , resize image , crop , resize again

but first resize work , crop , second resize noting on image, after first resize must ?

  webimage img = new webimage(file.inputstream);   img.resize(image_sw, image_sh);    img.crop(image_y, image_x, image_y + image_h, image_x + image_w);    img.resize(300, 300);    var path = request.mappath("~/content/images/category/" + model.id + "." + type);   img.save(path); 

the resize method has return argument new resized image. saving img save old image in old sizes.

try this:

img = img.resize(300, 300); 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -