Skip to content

Instantly share code, notes, and snippets.

@kumatti1
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kumatti1/71fcb83a1ec8a53378a5 to your computer and use it in GitHub Desktop.
Save kumatti1/71fcb83a1ec8a53378a5 to your computer and use it in GitHub Desktop.
色調整すんねん(・∀・)
Imports ServiceLibrary
'gfxSrvc.dll
Module Module1
Sub Main()
Dim objPenent As New CEDID
For i As UShort = 0 To 32
Dim objChild As New CEDID.CEDID_V1_Block
Dim tmp As uint32 = 1
Dim DevID As UInteger = tmp << i
objChild.DsiplayDev.U32DeviceID = DevID
If objPenent.GetEDIDBlock(objChild) Then
settings(objChild.DsiplayDev.U32DeviceID)
Exit For
End If
Next
End Sub
Private Sub settings(ByVal deviceID As UInteger)
With New ColorInfo
.device = New CDevice(deviceID)
.FillColorInfo()
'Contrast
.Contrast.I32CurrentValues = {50, 50, 50}
'Brightness
.Brightness.I32CurrentValues = {-30, -30, -30}
.SetColor()
Console.ReadLine()
End With
End Sub
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment