-2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
+2005-08-16 Vladimir Krasnov <vladimirk@mainsoft.com>
+
+ * Graphics.jvm.cs: Fixed InterpolationMode property
+
+2005-08-15 Vladimir Krasnov <vladimirk@mainsoft.com>
* Graphics.jvm.cs: Fixed DrawImage
switch (value) {\r
case InterpolationMode.Bicubic:\r
case InterpolationMode.HighQualityBicubic:\r
+ case InterpolationMode.Low:\r
hints.put(awt.RenderingHints.KEY_INTERPOLATION, awt.RenderingHints.VALUE_INTERPOLATION_BICUBIC);\r
break;\r
case InterpolationMode.High:\r
hints.put(awt.RenderingHints.KEY_INTERPOLATION, awt.RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r
break;\r
case InterpolationMode.Default:\r
- case InterpolationMode.Invalid:\r
- case InterpolationMode.Low:\r
if (hints.containsKey(awt.RenderingHints.KEY_INTERPOLATION))\r
hints.remove(awt.RenderingHints.KEY_INTERPOLATION);\r
break;\r
case InterpolationMode.NearestNeighbor:\r
hints.put(awt.RenderingHints.KEY_INTERPOLATION, awt.RenderingHints.VALUE_INTERPOLATION_NEAREST_NEIGHBOR);\r
break;\r
+ case InterpolationMode.Invalid:\r
+ throw new ArgumentException();\r
+ default:\r
+ throw new ArgumentOutOfRangeException();\r
}\r
\r
NativeObject.setRenderingHints(hints);\r