Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim MImage As Image = Image.FromFile("C:\Test.JPG") With PictureBox1 .Width = MImage.Width .Height = MImage.Height End With Dim g As Graphics = AutoGraphics(PictureBox1) Dim cm As New System.Drawing.Imaging.ColorMatrix() cm.Matrix00 = 1 cm.Matrix11 = 1 cm.Matrix22 = 1 cm.Matrix33 = 0.5F cm.Matrix44 = 1 Dim ia As New System.Drawing.Imaging.ImageAttributes() ia.SetColorMatrix(cm) g.DrawImage(MImage, New Rectangle(0, 0, MImage.Width, MImage.Height), _ 0, 0, MImage.Width, MImage.Height, GraphicsUnit.Pixel, ia) 'リソースを開放する MImage.Dispose() : g.Dispose() End Sub Private Function AutoGraphics(ByVal picSource As PictureBox) As Graphics If picSource.Image Is Nothing Then picSource.Image = New Bitmap(picSource.ClientRectangle.Width, picSource.ClientRectangle.Height) End If Return Graphics.FromImage(picSource.Image) End Function