• ¡Welcome to Square Theme!
  • This news are in header template.
  • Please ignore this message.
مهمان عزیز خوش‌آمدید. ورود عضــویت


امتیاز موضوع:
  • 11 رای - 2.27 میانگین
  • 1
  • 2
  • 3
  • 4
  • 5
Title: سورس کد تغییر دادن سایز عکس ( سی شارپ)
حالت موضوعی
#1
Need references to System.Drawing, System.Drawing.Drawing2D, System.Drawing.Imaging Namespaces


نقل قول://Namespace Reference
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;

/// <summary>
/// method for resizing an image
/// </summary>
/// <param name="img">the image to resize</param>
/// <param name="percentage">Percentage of change (i.e for 105% of the original provide 105)</param>
/// <returns></returns>
public Image Resize(Image img, int percentage)
{
//get the height and width of the image
int originalW = img.Width;
int originalH = img.Height;

//get the new size based on the percentage change
int resizedW = (int)(originalW * percentage);
int resizedH = (int)(originalH * percentage);

//create a new Bitmap the size of the new image
Bitmap bmp = new Bitmap(resizedW, resizedH);
//create a new graphic from the Bitmap
Graphics graphic = Graphics.FromImage((Image)bmp);
graphic.InterpolationMode = InterpolationMode.HighQualityBicubic;
//draw the newly resized image
graphic.DrawImage(img, 0, 0, resizedW, resizedH);
//dispose and free up the resources
graphic.Dispose();
//return the image
return (Image)bmp;
}
گروه دور همی پارسی کدرز
https://t.me/joinchat/GxVRww3ykLynHFsdCvb7eg
 
پاسخ
#2
isotretinoin tabletten rezeptfrei accutane rezeptfrei bestellen accutane tabletten kaufen
isotretinoin rezeptfrei kaufen accutane rezeptfrei bestellen accutane rezeptfrei bestellen
accutane rezeptfrei accutane rezeptfrei bestellen accutane kaufen schweiz
accutane kaufen ohne rezept accutane rezeptfrei bestellen accutane isotretinoin kaufen
accutane ohne rezept accutane tabletten kaufen isotretinoin ohne rezept kaufen
accutane kaufen accutane rezeptfrei bestellen accutane online kaufen
 
پاسخ
  


موضوعات مشابه ...
موضوع نویسنده پاسخ بازدید آخرین ارسال
  سورس کد تبدیل عکس رنگی به سیاه سفید (سی شارپ) Amin_Mansouri 1 5,579 10-08-2022، 08:06 PM
آخرین ارسال: sonusood
  سورس کد تبدیل عکس به ایکون ( سی شارپ ) Amin_Mansouri 1 3,024 10-08-2022، 07:37 PM
آخرین ارسال: sonusood
  سورس کد ساخت فایل pdf (سی شارپ) Amin_Mansouri 3 9,958 07-01-2017، 10:05 AM
آخرین ارسال: 7seo
  کد ssim در سی شارپ saraj00n 4 3,773 05-22-2017، 04:33 PM
آخرین ارسال: delsanik91
  سورس کد الگوریتم رمزنگاری تصویر زهرا ترکاشوند 3 7,625 05-17-2016، 01:41 PM
آخرین ارسال: mehdisadeghi
  سورس کد ifc saraj00n 1 2,290 05-13-2016، 01:46 PM
آخرین ارسال: saraj00n
  کد سی شارپ Save,SaveAs razi0tn 0 2,643 01-19-2016، 02:53 PM
آخرین ارسال: razi0tn
  سورس کد اضافه ,ویرایش,حذف,جستجو در دیتابیس(سی شارپ) Amin_Mansouri 6 21,392 12-09-2015، 08:17 AM
آخرین ارسال: Amin_Mansouri
  فروش سورس کد کتابساز اندروید دانشجو omid_student 1 3,570 08-12-2014، 11:00 AM
آخرین ارسال: Amin_Mansouri
  سورس کد تبدیل متن به صدا (سی شارپ) Amin_Mansouri 7 12,810 12-18-2013، 12:51 PM
آخرین ارسال: sal

پرش به انجمن:


Browsing: 1 مهمان