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; }
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); }
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); }
static ImageBinder LoadImage(string filename) { ImageBinder binder = new ClientImageBinder(filename); binder.SetImage(DemoBase.LoadBitmap(filename)); binder.State = ImageBinderState.Loaded; return binder; }