/// <summary> /// GDRAWCIMG(int ID, str imgName, int destX, int destY, int destWidth, int destHeight) /// エラーチェックは呼び出し元でのみ行う /// </summary> public void GDrawCImg(ASprite img, Rectangle destRect) { if (g == null) { throw new NullReferenceException(); } img.GraphicsDraw(g, destRect); }
/// <summary> /// GDRAWCIMG(int ID, str imgName, int destX, int destY, int destWidth, int destHeight, float[][] cm) /// エラーチェックは呼び出し元でのみ行う /// </summary> public void GDrawCImg(ASprite img, Rectangle destRect, float[][] cm) { if (g == null) { throw new NullReferenceException(); } ImageAttributes imageAttributes = new ImageAttributes(); ColorMatrix colorMatrix = new ColorMatrix(cm); imageAttributes.SetColorMatrix(colorMatrix, ColorMatrixFlag.Default, ColorAdjustType.Bitmap); img.GraphicsDraw(g, destRect, imageAttributes); }