Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/iAJTin/iEEDID
Browse files Browse the repository at this point in the history
  • Loading branch information
iAJTin committed Aug 22, 2019
2 parents ae9b54d + a991fe4 commit fb1a7b3
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,13 +244,15 @@

4. Gets a **single property** directly.

EEDID edid = EEDID.Parse(MacBookPro2018.IntegratedLaptopPanelEdidTable);
object gamma = eedid.Blocks[KnownDataBlock.EDID].Sections[(int)KnownEdidSection.BasicDisplay].GetPropertyValue(EedidProperty.Edid.BasicDisplay.Gamma);
if (gamma != null)
{
Console.WriteLine($" > Gamma > {gamma}");
}

EEDID edid = EEDID.Parse(MacBookPro2018.IntegratedLaptopPanelEdidTable);
DataBlock edidBlock = eedid.Blocks[KnownDataBlock.EDID];
BaseDataSectionCollection edidSections = edidBlock.Sections;
DataSection basicDisplaySection = edidSections[(int)KnownEdidSection.BasicDisplay];
object gamma = basicDisplaySection.GetPropertyValue(EedidProperty.Edid.BasicDisplay.Gamma);
if (gamma != null)
{
Console.WriteLine($" > Gamma > {gamma}");
}

# How can I send feedback!!!

Expand Down

0 comments on commit fb1a7b3

Please sign in to comment.