Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
附件/图片上传&裁剪&等比缩放 – 扎老铁
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215

Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
Warning: mysqli_num_fields() expects parameter 1 to be mysqli_result, boolean given in /www/wwwroot/dev.zhalaotie.com/wp-includes/wp-db.php on line 3215
class="post-52087 post type-post status-publish format-standard hentry">

附件/图片上传&裁剪&等比缩放

// Bitlab.Files 模块

AttachmentController.cs

   /// <summary>
        /// 等比缩放图片
        /// </summary>
        /// <param name="maxWidth"></param>
        /// <returns></returns>
        public ActionResult SaveImageWithResizeByWith(int maxWidth)

  /// <summary>
        /// 裁剪图片
        /// </summary>
        /// <param name="cropSize">截取图片的长,宽</param>
        /// <returns></returns>
        public ActionResult SaveImageWithCrop(System.Drawing.Size cropSize)

// 不裁剪
public ActionResult UploadImage()

 

发表评论

电子邮件地址不会被公开。