亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? resourceutil.cs

?? chaoshi guan li xitong
?? CS
字號:
using System;
using System.IO;
using System.Drawing;
using System.Reflection;
using System.Windows.Forms;
using System.Resources;

namespace UtilityLibrary.General
{
	public class ResourceUtil
	{
		public static Icon LoadIconStream(Type assemblyType, string iconName)
		{
			// Get the assembly that contains the bitmap resource
			Assembly myAssembly = Assembly.GetAssembly(assemblyType);

			// Get the resource stream containing the images
			Stream iconStream = myAssembly.GetManifestResourceStream(iconName);

			// Load the Icon from the stream
			return new Icon(iconStream);
		}

		public static Icon LoadIconStream(Type assemblyType, string iconName, Size iconSize)
		{
			// Load the entire Icon requested (may include several different Icon sizes)
			Icon rawIcon = LoadIconStream(assemblyType, iconName);
			
			// Create and return a new Icon that only contains the requested size
			return new Icon(rawIcon, iconSize); 
		}

		public static Bitmap LoadBitmapStream(Type assemblyType, string imageName)
		{
			return LoadBitmapStream(assemblyType, imageName, false, new Point(0,0));
		}

		public static Bitmap LoadBitmapStream(Type assemblyType, string imageName, Point transparentPixel)
		{
			return LoadBitmapStream(assemblyType, imageName, true, transparentPixel);
		}

		public static ImageList LoadImageListStream(Type assemblyType, 
												string imageName, 
												Size imageSize)
		{
			return LoadImageListStream(assemblyType, imageName, imageSize, false, new Point(0,0));
		}

		public static ImageList LoadImageListStream(Type assemblyType, 
												string imageName, 
												Size imageSize,
												Point transparentPixel)
		{
			return LoadImageListStream(assemblyType, imageName, imageSize, true, transparentPixel);
		}

		protected static Bitmap LoadBitmapStream(Type assemblyType, string imageName, 
										   bool makeTransparent, Point transparentPixel)
		{
			// Get the assembly that contains the bitmap resource
			Assembly myAssembly = Assembly.GetAssembly(assemblyType);

			// Get the resource stream containing the images
			Stream imageStream = myAssembly.GetManifestResourceStream(imageName);

			// Load the bitmap from stream
			Bitmap image = new Bitmap(imageStream);

			if (makeTransparent)
			{
				Color backColor = image.GetPixel(transparentPixel.X, transparentPixel.Y);
    
				// Make backColor transparent for Bitmap
				image.MakeTransparent(backColor);
			}
			    
			return image;
		}

		public static ImageList LoadImageListStream(Type assemblyType, 
												   string imageName, 
												   Size imageSize,
												   bool makeTransparent,
												   Point transparentPixel)
		{
			// Create storage for bitmap strip
			ImageList images = new ImageList();

			// Define the size of images we supply
			images.ImageSize = imageSize;

			// Get the assembly that contains the bitmap resource
			Assembly myAssembly = Assembly.GetAssembly(assemblyType);

			// Get the resource stream containing the images
			Stream imageStream = myAssembly.GetManifestResourceStream(imageName);

			// Load the bitmap strip from resource
			Bitmap pics = new Bitmap(imageStream);

			if (makeTransparent)
			{
				Color backColor = pics.GetPixel(transparentPixel.X, transparentPixel.Y);
    
				// Make backColor transparent for Bitmap
				pics.MakeTransparent(backColor);
			}
			    
			// Load them all !
			images.Images.AddStrip(pics);

			return images;
		}
        
		// The difference between the "LoadXStream" and "LoadXResource" functions is that
		// the load stream functions will load a embedded resource -- a file that you choose
		// to "embed as resource" while the load resource functions work with resource files
		// that have structure (.resX and .resources) and thus can hold several different 
		// resource items.

		public static Icon LoadIconResource(Type assemblyType, string resourceHolder, string imageName) 
		{
			// Get the assembly that contains the bitmap resource
			Assembly thisAssembly = Assembly.GetAssembly(assemblyType);
			ResourceManager rm = new ResourceManager(resourceHolder, thisAssembly);
			Icon icon = (Icon)rm.GetObject(imageName);
			return icon;
		}
		
		public static Bitmap LoadBitmapResource(Type assemblyType, string resourceHolder, string imageName) 
		{
			// Get the assembly that contains the bitmap resource
			Assembly thisAssembly = Assembly.GetAssembly(assemblyType);
			ResourceManager rm = new ResourceManager(resourceHolder, thisAssembly);
			Bitmap bitmap = (Bitmap)rm.GetObject(imageName);
			return bitmap;
		}


		public static ImageList LoadImageListResource(Type assemblyType, string resourceHolder,
																string imageName, Size imageSize)
		
		{
			return LoadImageListResource(assemblyType, resourceHolder, imageName, imageSize, false, new Point(0,0));
		}

		public static ImageList LoadImageListResource(Type assemblyType, string resourceHolder,
			string imageName, 
			Size imageSize,
			bool makeTransparent,
			Point transparentPixel)
		{
			// Create storage for bitmap strip
			ImageList images = new ImageList();

			// Define the size of images we supply
			images.ImageSize = imageSize;

			// Get the assembly that contains the bitmap resource
			Assembly thisAssembly = Assembly.GetAssembly(assemblyType);
			ResourceManager rm = new ResourceManager(resourceHolder, thisAssembly);
			Bitmap pics = (Bitmap)rm.GetObject(imageName);

			if (makeTransparent)
			{
				Color backColor = pics.GetPixel(transparentPixel.X, transparentPixel.Y);
    
				// Make backColor transparent for Bitmap
				pics.MakeTransparent(backColor);
			}
			    
			// Load the image
			images.Images.AddStrip(pics);

			return images;
		}




	}
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人高清av在线| 欧美日韩成人综合| 亚洲国产精品t66y| 成人在线一区二区三区| 国产日本欧美一区二区| 99视频超级精品| 亚洲影视在线播放| 精品少妇一区二区三区视频免付费 | 国产一区二区在线看| 欧美mv和日韩mv的网站| 成人av在线资源网站| 亚洲成人精品影院| 国产午夜精品美女毛片视频| 成人性生交大片免费看视频在线| 亚洲免费观看高清在线观看| 51午夜精品国产| 91尤物视频在线观看| 日日骚欧美日韩| 欧美国产1区2区| 精品三级在线看| 欧美亚州韩日在线看免费版国语版| 亚洲色图制服丝袜| 久久综合给合久久狠狠狠97色69| 99久久婷婷国产综合精品| 青青草国产精品亚洲专区无| 亚洲人成精品久久久久久| 99re8在线精品视频免费播放| 亚洲少妇30p| 日本一区二区不卡视频| 精品美女在线播放| 欧美成人三级在线| 这里只有精品99re| 日韩一区二区三区三四区视频在线观看| 国产裸体歌舞团一区二区| 免费三级欧美电影| 日本一不卡视频| 麻豆传媒一区二区三区| 天使萌一区二区三区免费观看| 亚洲一区在线电影| 亚洲国产日韩av| 日本欧美大码aⅴ在线播放| 日韩成人精品在线| 国内不卡的二区三区中文字幕 | 激情图片小说一区| 国产自产2019最新不卡| 成人亚洲精品久久久久软件| 成年人午夜久久久| 欧美视频一区二区三区四区| 欧美日韩一区二区三区高清| 欧美一级一区二区| 国产精品人妖ts系列视频| 最新高清无码专区| 免费人成精品欧美精品| 丁香婷婷综合五月| 欧美精品日韩综合在线| 久久久久久黄色| 一区二区三区 在线观看视频| 婷婷久久综合九色综合伊人色| 久久精品国产99久久6| 麻豆一区二区三| 91在线看国产| 日韩欧美国产综合一区 | 中文久久乱码一区二区| 亚洲已满18点击进入久久| 国产一区二区三区免费观看| 一本色道亚洲精品aⅴ| 久久综合色8888| 五月天久久比比资源色| 91在线porny国产在线看| 精品国产精品一区二区夜夜嗨| 一区二区三区欧美久久| 成人黄色片在线观看| 欧美变态tickle挠乳网站| 日本不卡一二三| 91精品一区二区三区久久久久久 | 欧美国产综合一区二区| 狠狠色狠狠色综合系列| 精品久久一区二区| 麻豆精品一区二区三区| 欧美日韩第一区日日骚| 日本在线观看不卡视频| 3atv一区二区三区| 韩国精品一区二区| 久久精品人人爽人人爽| 粉嫩高潮美女一区二区三区 | 国产亚洲精品bt天堂精选| 国产一区二区三区综合| 国产午夜亚洲精品理论片色戒| 久久激情五月激情| 国产精品看片你懂得| 在线视频一区二区三| 亚洲视频一二三区| 欧美视频在线播放| 国内精品不卡在线| 亚洲欧美色图小说| 91精品国产综合久久久久久| 久久精品999| 欧美网站大全在线观看| 亚洲成av人片| 国产精品进线69影院| 欧洲在线/亚洲| 国产一区二区三区黄视频 | 成人精品视频.| 亚洲一区免费观看| 亚洲色图在线看| 久久久久久99久久久精品网站| 欧美亚州韩日在线看免费版国语版| 日韩制服丝袜av| 一区二区三区小说| 欧美激情一区二区三区蜜桃视频| 91精品一区二区三区久久久久久 | 精品视频一区二区不卡| 国产精品一级黄| 国产一区二区久久| 国产美女精品在线| 国产精品一区二区三区网站| 麻豆精品蜜桃视频网站| 日本免费在线视频不卡一不卡二| 中文字幕亚洲区| 亚洲欧美偷拍卡通变态| 亚洲欧美成aⅴ人在线观看| 国产精品久久久久久久裸模| 国产区在线观看成人精品| 久久色.com| 欧美国产精品一区二区| 亚洲免费av高清| 狠狠色综合日日| 韩国三级在线一区| 91一区在线观看| 日韩免费电影一区| 日本一区二区三区四区在线视频 | 一区二区视频在线看| 亚洲精品亚洲人成人网在线播放| 成人免费在线观看入口| 亚洲欧美日韩在线| 精彩视频一区二区| 成人午夜免费av| 欧美精品一二三四| 中文字幕中文字幕中文字幕亚洲无线| 中文字幕一区二区三区色视频| 亚洲国产另类av| 丁香婷婷综合五月| 日韩午夜三级在线| 综合婷婷亚洲小说| 国产精品一区二区91| 欧美日韩一区在线观看| 国产嫩草影院久久久久| 日韩影院免费视频| 欧美亚洲国产一区在线观看网站| 精品三级av在线| 久久99久久久欧美国产| 欧美男人的天堂一二区| 亚洲激情av在线| 国产激情视频一区二区在线观看| 3751色影院一区二区三区| 夜夜夜精品看看| 色94色欧美sute亚洲13| 国产精品美女久久久久高潮| 国产成人午夜99999| 26uuu国产电影一区二区| 久久精品国产99国产精品| 91精品国产综合久久久久久久| 亚洲成人免费看| 日韩一区二区高清| 国产综合色在线| 国产欧美视频一区二区| 豆国产96在线|亚洲| 亚洲欧洲日韩综合一区二区| 成人sese在线| 亚洲丶国产丶欧美一区二区三区| 欧美精三区欧美精三区| 轻轻草成人在线| 国产精品久久久久影院亚瑟 | 91激情在线视频| 亚洲妇女屁股眼交7| 欧美mv日韩mv| 色综合天天综合网国产成人综合天 | 国产精品三级视频| 91在线一区二区| 国产曰批免费观看久久久| 中文字幕av不卡| 欧美一区二区三区日韩视频| 成人精品视频一区二区三区| 亚洲午夜羞羞片| 国产欧美一区二区精品婷婷| 欧美综合视频在线观看| 国产高清亚洲一区| 另类小说色综合网站| 一区二区三区精品在线| 精品少妇一区二区| 91麻豆精品国产91久久久| 91免费观看视频| 成人免费毛片高清视频| 麻豆视频观看网址久久| 亚洲激情自拍视频| 亚洲精品中文字幕在线观看| 久久网站最新地址| 欧美经典一区二区| 久久精品夜夜夜夜久久| 正在播放亚洲一区|