Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members

ImageList.cs

Go to the documentation of this file.
00001 /*
00002 SimImmuno version 1.0
00003 Copyright (C) 2005 sebeuh.ajsinfo.net
00004 
00005 SimImmuno est libre, vous pouvez le redistribuer et/ou le modifier
00006 selon les termes de la Licence Publique Générale GNU publiée par la
00007 Free Software Foundation (version 2).
00008 
00009 SimImmuno est distribué car potentiellement utile, mais SANS AUCUNE GARANTIE,
00010 ni explicite ni implicite, y compris les garanties de commercialisation
00011 ou d'adaptation dans un but spécifique. Reportez-vous à la
00012 Licence Publique Générale GNU pour plus de détails.
00013 
00014 Texte de la license officielle (anglais) :
00015 http://simimmuno.ajsinfo.net/text.aspx?code=no&txt_file=GPL.txt
00016 Traduction francaise (non-officielle) :
00017 http://simimmuno.ajsinfo.net/text.aspx?code=no&txt_file=GPL-fr.txt
00018 */
00019 using System;
00020 using System.Drawing;
00021 using System.Windows.Forms;
00022 using System.Reflection;
00023 
00024 namespace SimImmuno
00025 {
00026         public class ImageList
00027         {
00028                 public static Image CellNormal;
00029                 public static Image CellInfect;
00030                 public static Image Antigen;
00031                 public static Image Anticorp;
00032                 public static Image LB;
00033                 public static Image Plasmocyte;
00034                 public static Image Phagocyte;
00035                 public static Image CI;
00036                 public static Image LT8;
00037                 public static Image LTc;
00038                 public static Image Debris;
00039                 public static Image LT4m;
00040                 public static Image LT8m;
00041                 public static Image LBm;
00042                 public static Image LT4;
00043                 public static Image VIH;
00044                 public static Image InfectVIH;          
00045 
00046                 public static void LoadImgs()
00047                 {
00048                         //Extraction des ressources
00049                         Bitmap bCellNormal = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.CellNormal.bmp"));                  
00050                         Bitmap bCellInfect = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.CellInfect.bmp"));
00051                         Bitmap bAntigen = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Antigen.bmp"));
00052                         Bitmap bAnticorp = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Anticorps.bmp"));
00053                         Bitmap bLB = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LB.bmp"));
00054                         Bitmap bPlasmocyte = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Plasmo.bmp"));
00055                         Bitmap bPhagocyte = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Phago.bmp"));
00056                         Bitmap bCI = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.CI.bmp"));
00057                         Bitmap bLT8 = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT8.bmp"));
00058                         Bitmap bLTc = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LTc.bmp"));
00059                         Bitmap bDebris = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.Debris.bmp"));
00060                         Bitmap bLT8m = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT8m.bmp"));
00061                         Bitmap bLT4m = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT4m.bmp"));
00062                         Bitmap bLBm = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LBm.bmp"));
00063                         Bitmap bLT4 = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.LT4.bmp"));
00064                         Bitmap bVIH = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.VIH.bmp"));
00065                         Bitmap bInfectVIH = new Bitmap(Assembly.GetExecutingAssembly().GetManifestResourceStream("SimImmuno.images.InfectVIH.bmp"));
00066                         //Transparence
00067                         bCellNormal.MakeTransparent();
00068                         bCellInfect.MakeTransparent();
00069                         bAnticorp.MakeTransparent();
00070                         bAntigen.MakeTransparent();
00071                         bLB.MakeTransparent();
00072                         bPlasmocyte.MakeTransparent();
00073                         bPhagocyte.MakeTransparent();
00074                         bCI.MakeTransparent();
00075                         bLT8.MakeTransparent();
00076                         bLTc.MakeTransparent();
00077                         bDebris.MakeTransparent();
00078                         bLT8m.MakeTransparent();
00079                         bLT4m.MakeTransparent();
00080                         bLBm.MakeTransparent();
00081                         bLT4.MakeTransparent();
00082                         bVIH.MakeTransparent();
00083                         bInfectVIH.MakeTransparent();
00084                         // Chargement des "Images"
00085                         CellNormal = bCellNormal;
00086                         CellInfect = bCellInfect;
00087                         Anticorp = bAnticorp;
00088                         Antigen = bAntigen;
00089                         LB = bLB;
00090                         Plasmocyte = bPlasmocyte;
00091                         Phagocyte = bPhagocyte;
00092                         CI = bCI;
00093                         LT8 = bLT8;
00094                         LTc = bLTc;
00095                         Debris = bDebris;
00096                         LT8m = bLT8m;
00097                         LT4m = bLT4m;
00098                         LBm = bLBm;
00099                         LT4 = bLT4;
00100                         VIH = bVIH;
00101                         InfectVIH = bInfectVIH;
00102                 }
00103         }
00104 }

Generated on Sat Jun 4 15:03:40 2005 for SimImmuno by  doxygen 1.4.2