X-Git-Url: http://git.sourceforge.jp/view?p=applistation%2FAppliStation.git;a=blobdiff_plain;f=AppliStation%2FAppliStation.Util%2FGUIUtils.cs;h=ce699659dbb086c3af6b24ad7a89a5aa92bcdbbc;hp=7e235d6e38aba285da52692481137135fcabd037;hb=d0f67394434587c7c3152f149be0675cb0a506ec;hpb=a55ce43a269a988535d02fb212ca648163de480d
diff --git a/AppliStation/AppliStation.Util/GUIUtils.cs b/AppliStation/AppliStation.Util/GUIUtils.cs
index 7e235d6..ce69965 100644
--- a/AppliStation/AppliStation.Util/GUIUtils.cs
+++ b/AppliStation/AppliStation.Util/GUIUtils.cs
@@ -57,11 +57,11 @@ namespace AppliStation.Util
const float b = 0.114478f;
ColorMatrix cm = new ColorMatrix(new float[][]{
- new float[]{r, r, r, 0, 0},
- new float[]{g, g, g, 0, 0},
- new float[]{b, b, b, 0, 0},
+ new float[]{r, r, r, 0, 0},
+ new float[]{g, g, g, 0, 0},
+ new float[]{b, b, b, 0, 0},
new float[]{0, 0, 0, alpha, 0},
- new float[]{0, 0, 0, 0, 1},
+ new float[]{0, 0, 0, 0, 1},
});
ImageAttributes ia = new ImageAttributes();
ia.SetColorMatrix(cm);
@@ -69,6 +69,13 @@ namespace AppliStation.Util
return ia;
}
+ ///
+ /// ç»åãæå®é åã®çä¸ã«æã
+ ///
+ /// æç»å¯¾è±¡ã®ã°ã©ãã£ãã¯ã¹
+ /// ç»å
+ /// æå®é å
+ /// ImageAttributesãnullã§ããã¾ããªã
public static void Graphics_DrawCenterImage(Graphics g, Image img, Rectangle b, ImageAttributes ia)
{
int x = b.Left + (b.Width - img.Width ) / 2;