Exemple #1
0
        static ImageBinder LoadImage(string filename)
        {
            ImageBinder binder = new ClientImageBinder(filename);

            binder.SetImage(DemoBase.LoadBitmap(filename));
            binder.State = ImageBinderState.Loaded;
            return(binder);
        }
 public static ImageBinder GetImageBinder(ImageName imageName)
 {
     Image found;
     images.TryGetValue(imageName, out found);
     ImageBinder binder = new ClientImageBinder(null);
     binder.SetImage(found);
     binder.State = ImageBinderState.Loaded;
     return binder;
 }
Exemple #3
0
        static ImageBinder LoadImage(string filename)
        {
            System.Drawing.Bitmap gdiBmp = new System.Drawing.Bitmap(filename);
            Bitmap bmp = new Bitmap(gdiBmp.Width, gdiBmp.Height, gdiBmp);

            ImageBinder binder = new ClientImageBinder(filename);

            binder.SetImage(bmp);
            binder.State = ImageBinderState.Loaded;
            return(binder);
        }
Exemple #4
0
        public static ImageBinder GetImageBinder(ImageName imageName)
        {
            Image found;

            images.TryGetValue(imageName, out found);

            ImageBinder binder = new ClientImageBinder(null);

            binder.SetImage(found);
            binder.State = ImageBinderState.Loaded;
            return(binder);
        }
Exemple #5
0
 static ImageBinder LoadImage(string filename)
 {
     ImageBinder binder = new ClientImageBinder(filename);
     binder.SetImage(DemoBase.LoadBitmap(filename));
     binder.State = ImageBinderState.Loaded;
     return binder;
 }