* Mono.Cairo/Cairo.cs (cairo_set_target_drawable): Not available anymore, removed.
[mono.git] / mcs / class / System.Drawing.Design / System.Drawing.Design / BitmapEditor.cs
1 //
2 // System.Drawing.Design.BitmapEditor.cs
3 // 
4 // Authors:
5 //   Martin Willemoes Hansen (mwh@sysrq.dk)
6 //   Andreas Nahr (ClassDevelopment@A-SoftTech.com)
7 // 
8 // (C) 2003 Martin Willemoes Hansen
9 // (C) 2003 Andreas Nahr
10 // 
11 using System;
12 using System.IO;
13 using System.Drawing;
14 namespace System.Drawing.Design
15 {
16         public class BitmapEditor : ImageEditor
17         {
18
19                 public BitmapEditor()
20                 {
21                 }
22
23                 protected override string[] GetExtensions()
24                 {
25                         return new string[] {"*.bmp", "*.gif", "*.jpg", "*.jpeg", "*.png", "*.ico"};
26                 }
27
28                 protected override string GetFileDialogDescription()
29                 {
30                         return Locale.GetText("All bitmap files");
31                 }
32
33                 protected override Image LoadFromStream (Stream stream)
34                 {
35                         return new Bitmap (stream);
36                 }
37         }
38 }