x58dd58a96343fde0.cs
上传用户:xlxx0122
上传日期:2015-04-24
资源大小:3904k
文件大小:3k
源码类别:

.net编程

开发平台:

C#

  1. namespace Sunisoft.IrisSkin.InternalControls
  2. {
  3.     using System;
  4.     using System.Drawing;
  5.     using System.Reflection;
  6.     using System.Windows.Forms;
  7.     internal class x58dd58a96343fde0
  8.     {
  9.         public static Bitmap LoadBitmap(System.Type assemblyType, string imageName)
  10.         {
  11.             return x3a15a33740cd7ff9(assemblyType, imageName, false, new Point(0, 0));
  12.         }
  13.         public static Bitmap LoadBitmap(System.Type assemblyType, string imageName, Point transparentPixel)
  14.         {
  15.             return x3a15a33740cd7ff9(assemblyType, imageName, true, transparentPixel);
  16.         }
  17.         public static ImageList LoadBitmapStrip(System.Type assemblyType, string imageName, Size imageSize)
  18.         {
  19.             return xd1601e45c3cc2056(assemblyType, imageName, imageSize, false, new Point(0, 0));
  20.         }
  21.         public static ImageList LoadBitmapStrip(System.Type assemblyType, string imageName, Size imageSize, Point transparentPixel)
  22.         {
  23.             return xd1601e45c3cc2056(assemblyType, imageName, imageSize, true, transparentPixel);
  24.         }
  25.         public static Cursor LoadCursor(System.Type assemblyType, string cursorName)
  26.         {
  27.             return new Cursor(Assembly.GetAssembly(assemblyType).GetManifestResourceStream(cursorName));
  28.         }
  29.         public static Icon LoadIcon(System.Type assemblyType, string iconName)
  30.         {
  31.             return new Icon(Assembly.GetAssembly(assemblyType).GetManifestResourceStream(iconName));
  32.         }
  33.         public static Icon LoadIcon(System.Type assemblyType, string iconName, Size iconSize)
  34.         {
  35.             return new Icon(LoadIcon(assemblyType, iconName), iconSize);
  36.         }
  37.         protected static Bitmap x3a15a33740cd7ff9(System.Type xeaa6eb5f09df2be8, string xe11224e032957d06, bool x4cf1847391b87d80, Point xc8f338823ae9b184)
  38.         {
  39.             Bitmap bitmap = new Bitmap(Assembly.GetAssembly(xeaa6eb5f09df2be8).GetManifestResourceStream(xe11224e032957d06));
  40.             if (x4cf1847391b87d80)
  41.             {
  42.                 Color pixel = bitmap.GetPixel(xc8f338823ae9b184.X, xc8f338823ae9b184.Y);
  43.                 bitmap.MakeTransparent(pixel);
  44.             }
  45.             return bitmap;
  46.         }
  47.         protected static ImageList xd1601e45c3cc2056(System.Type xeaa6eb5f09df2be8, string xe11224e032957d06, Size x95dac044246123ac, bool x4cf1847391b87d80, Point xc8f338823ae9b184)
  48.         {
  49.             ImageList list = new ImageList();
  50.             list.ImageSize = x95dac044246123ac;
  51.             Bitmap bitmap = new Bitmap(Assembly.GetAssembly(xeaa6eb5f09df2be8).GetManifestResourceStream(xe11224e032957d06));
  52.             if (x4cf1847391b87d80)
  53.             {
  54.                 Color pixel = bitmap.GetPixel(xc8f338823ae9b184.X, xc8f338823ae9b184.Y);
  55.                 bitmap.MakeTransparent(pixel);
  56.             }
  57.             list.Images.AddStrip(bitmap);
  58.             return list;
  59.         }
  60.     }
  61. }