<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>resim nasıl boyutlandırılır | Barış ÖZCAN Web Tasarım | antalya web tasarım | antalya web tasarımı | Sosyal Medya Danışmanlığı</title>
	<atom:link href="https://www.barisozcan.net/etiket/resim-nasil-boyutlandirilir/feed" rel="self" type="application/rss+xml" />
	<link>https://www.barisozcan.net</link>
	<description></description>
	<lastBuildDate>Tue, 28 Dec 2010 19:28:51 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Asp.net de Resim Boyutlandırma Kodu</title>
		<link>https://www.barisozcan.net/asp-net-de-resim-boyutlandirma-kodu</link>
		
		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Tue, 28 Dec 2010 19:28:51 +0000</pubDate>
				<category><![CDATA[ASP]]></category>
		<category><![CDATA[WEB TASARIM]]></category>
		<category><![CDATA[asp dersleri]]></category>
		<category><![CDATA[Asp.net de Resim Boyutlandırma Kodu]]></category>
		<category><![CDATA[Asp.net de Resim Boyutlandırma nasıl yapılır]]></category>
		<category><![CDATA[asp.net dersleri]]></category>
		<category><![CDATA[Resim Boyutlandırma Kodu]]></category>
		<category><![CDATA[resim nasıl boyutlandırılır]]></category>
		<guid isPermaLink="false">http://www.barisozcan.net/?p=1185</guid>

					<description><![CDATA[<p>Asp.net de Resim Boyutlandırma Kodu</p>
<p>The post <a href="https://www.barisozcan.net/asp-net-de-resim-boyutlandirma-kodu">Asp.net de Resim Boyutlandırma Kodu</a> first appeared on <a href="https://www.barisozcan.net">Barış ÖZCAN Web Tasarım | antalya web tasarım | antalya web tasarımı | Sosyal Medya Danışmanlığı</a>.</p>]]></description>
										<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=https://www.barisozcan.net/asp-net-de-resim-boyutlandirma-kodu&amp;layout=standard&amp;show_faces=1&amp;width=450&amp;action=like&amp;colorscheme=light&amp;font=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:25px"></iframe><p>Asp.Net&#8217;de boyutlandırma kodundan bahsedeceğiz. Ayrıca  bu benim de kullandıgım boyutlandırma kodudur.</p>
<pre> public  System.Drawing.Image ResimBoyutlandir(System.Drawing.Image imgPhoto, int Yukseklik)
        {
            int sourceWidth = imgPhoto.Width;
            int sourceHeight = imgPhoto.Height;

            int destWidth = Yukseklik;
            int destHeight = 200;<span id="more-1185"></span>

            Bitmap bmPhoto = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb);
            bmPhoto.SetResolution(imgPhoto.HorizontalResolution, imgPhoto.VerticalResolution);

            Graphics grPhoto = Graphics.FromImage(bmPhoto);
            grPhoto.InterpolationMode = InterpolationMode.HighQualityBicubic;
            grPhoto.FillRectangle(Brushes.White, 0, 0, destWidth, destHeight);

            grPhoto.DrawImage(imgPhoto, new Rectangle(0, 0, destWidth, destHeight), new Rectangle(0, 0, sourceWidth, sourceHeight), GraphicsUnit.Pixel);

            grPhoto.Dispose();
            return bmPhoto;
        }

       Kullanışı

                  if (FileUpload1.HasFile == true)
            {
                string imageName = FileUpload1.FileName;
                if (imageName != null)
                {

                        System.Drawing.Image imgPhotoVert = System.Drawing.Image.FromFile(Server.MapPath(Klasor));
                        System.Drawing.Image imgPhoto = null;
                        Images img = new Images();
                        imgPhoto = img.ResimBoyutlandir(imgPhotoVert, yeniW); //ScaleByPercent adlı mekanızmaya yolluyoruz aldığımız bilgileri.
                        imgPhoto.Save(Server.MapPath("~/upload/" + gelenResim), ImageFormat.Jpeg); // Ekrana basıyoruz..
                        imgPhoto.Dispose();

                }</pre><p>The post <a href="https://www.barisozcan.net/asp-net-de-resim-boyutlandirma-kodu">Asp.net de Resim Boyutlandırma Kodu</a> first appeared on <a href="https://www.barisozcan.net">Barış ÖZCAN Web Tasarım | antalya web tasarım | antalya web tasarımı | Sosyal Medya Danışmanlığı</a>.</p>]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
