I am trying to use the AdvancedColorInfo class, but can't work out how to instantiate it Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Instantiate .NET class without public constructorInterface defining a constructor signature?How to get the list of properties of a class?Passing arguments to C# generic new() of templated typeInstantiating Internal class with private constructorHow can I return an empty IEnumerable?The model backing the <Database> context has changed since the database was createdLINQ Orderby Descending QueryOnly allow Factory method to instantiate objects (prevent instantiation of base class AND uninitialized objects)C# Error: Parent does not contain a constructor that takes 0 argumentsWhy not inherit from List<T>?

How much damage would a cupful of neutron star matter do to the Earth?

What initially awakened the Balrog?

How many morphisms from 1 to 1+1 can there be?

How to write capital alpha?

What does this say in Elvish?

Sliceness of knots

One-one communication

Did any compiler fully use 80-bit floating point?

How to run automated tests after each commit?

Do I really need to have a message in a novel to appeal to readers?

Why does 14 CFR have skipped subparts in my ASA 2019 FAR/AIM book?

Karn the great creator - 'card from outside the game' in sealed

Project Euler #1 in C++

Is CEO the "profession" with the most psychopaths?

How does Belgium enforce obligatory attendance in elections?

Amount of permutations on an NxNxN Rubik's Cube

Is multiple magic items in one inherently imbalanced?

How often does castling occur in grandmaster games?

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

macOS: Name for app shortcut screen found by pinching with thumb and three fingers

What is the chair depicted in Cesare Maccari's 1889 painting "Cicerone denuncia Catilina"?

Drawing spherical mirrors

Is there hard evidence that the grant peer review system performs significantly better than random?

How does the math work when buying airline miles?



I am trying to use the AdvancedColorInfo class, but can't work out how to instantiate it



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Instantiate .NET class without public constructorInterface defining a constructor signature?How to get the list of properties of a class?Passing arguments to C# generic new() of templated typeInstantiating Internal class with private constructorHow can I return an empty IEnumerable?The model backing the <Database> context has changed since the database was createdLINQ Orderby Descending QueryOnly allow Factory method to instantiate objects (prevent instantiation of base class AND uninitialized objects)C# Error: Parent does not contain a constructor that takes 0 argumentsWhy not inherit from List<T>?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















private AdvancedColorInfo advancedColorInfo = new AdvancedColorInfo();


I have tried the above code, but get this error:




“AdvancedColorInfo doesn't contain a constructor that takes 0
arguments.”




I am trying to use the method IsHdrMetadataFormatCurrentlySupported, so I need to create an instance of the AdvancedColorInfo class.



I tried changing the UWP Windows version that is mentioned in the documentation but no luck.



How do I get an instance of AdvancedColorInfo?










share|improve this question
























  • Are you calling docs.microsoft.com/en-us/uwp/api/… ?

    – mjwills
    Mar 22 at 11:13











  • i am calling this one docs.microsoft.com/en-us/uwp/api/…

    – prem
    Mar 22 at 11:19











  • I am not getting any constructor signature suggestion.

    – prem
    Mar 22 at 11:23












  • Press F12 on it and look at the metadata

    – NibblyPig
    Mar 22 at 11:30






  • 1





    There's a clue! The constructor may be private. Therefore to construct an instance of it there could be a static method, e.g. AdvancedColorInfo.Create() or it could be derived from another class.

    – NibblyPig
    Mar 22 at 13:38

















0















private AdvancedColorInfo advancedColorInfo = new AdvancedColorInfo();


I have tried the above code, but get this error:




“AdvancedColorInfo doesn't contain a constructor that takes 0
arguments.”




I am trying to use the method IsHdrMetadataFormatCurrentlySupported, so I need to create an instance of the AdvancedColorInfo class.



I tried changing the UWP Windows version that is mentioned in the documentation but no luck.



How do I get an instance of AdvancedColorInfo?










share|improve this question
























  • Are you calling docs.microsoft.com/en-us/uwp/api/… ?

    – mjwills
    Mar 22 at 11:13











  • i am calling this one docs.microsoft.com/en-us/uwp/api/…

    – prem
    Mar 22 at 11:19











  • I am not getting any constructor signature suggestion.

    – prem
    Mar 22 at 11:23












  • Press F12 on it and look at the metadata

    – NibblyPig
    Mar 22 at 11:30






  • 1





    There's a clue! The constructor may be private. Therefore to construct an instance of it there could be a static method, e.g. AdvancedColorInfo.Create() or it could be derived from another class.

    – NibblyPig
    Mar 22 at 13:38













0












0








0








private AdvancedColorInfo advancedColorInfo = new AdvancedColorInfo();


I have tried the above code, but get this error:




“AdvancedColorInfo doesn't contain a constructor that takes 0
arguments.”




I am trying to use the method IsHdrMetadataFormatCurrentlySupported, so I need to create an instance of the AdvancedColorInfo class.



I tried changing the UWP Windows version that is mentioned in the documentation but no luck.



How do I get an instance of AdvancedColorInfo?










share|improve this question
















private AdvancedColorInfo advancedColorInfo = new AdvancedColorInfo();


I have tried the above code, but get this error:




“AdvancedColorInfo doesn't contain a constructor that takes 0
arguments.”




I am trying to use the method IsHdrMetadataFormatCurrentlySupported, so I need to create an instance of the AdvancedColorInfo class.



I tried changing the UWP Windows version that is mentioned in the documentation but no luck.



How do I get an instance of AdvancedColorInfo?







c# .net graphics






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 21:34









Cody Gray

196k35385476




196k35385476










asked Mar 22 at 10:55









premprem

315




315












  • Are you calling docs.microsoft.com/en-us/uwp/api/… ?

    – mjwills
    Mar 22 at 11:13











  • i am calling this one docs.microsoft.com/en-us/uwp/api/…

    – prem
    Mar 22 at 11:19











  • I am not getting any constructor signature suggestion.

    – prem
    Mar 22 at 11:23












  • Press F12 on it and look at the metadata

    – NibblyPig
    Mar 22 at 11:30






  • 1





    There's a clue! The constructor may be private. Therefore to construct an instance of it there could be a static method, e.g. AdvancedColorInfo.Create() or it could be derived from another class.

    – NibblyPig
    Mar 22 at 13:38

















  • Are you calling docs.microsoft.com/en-us/uwp/api/… ?

    – mjwills
    Mar 22 at 11:13











  • i am calling this one docs.microsoft.com/en-us/uwp/api/…

    – prem
    Mar 22 at 11:19











  • I am not getting any constructor signature suggestion.

    – prem
    Mar 22 at 11:23












  • Press F12 on it and look at the metadata

    – NibblyPig
    Mar 22 at 11:30






  • 1





    There's a clue! The constructor may be private. Therefore to construct an instance of it there could be a static method, e.g. AdvancedColorInfo.Create() or it could be derived from another class.

    – NibblyPig
    Mar 22 at 13:38
















Are you calling docs.microsoft.com/en-us/uwp/api/… ?

– mjwills
Mar 22 at 11:13





Are you calling docs.microsoft.com/en-us/uwp/api/… ?

– mjwills
Mar 22 at 11:13













i am calling this one docs.microsoft.com/en-us/uwp/api/…

– prem
Mar 22 at 11:19





i am calling this one docs.microsoft.com/en-us/uwp/api/…

– prem
Mar 22 at 11:19













I am not getting any constructor signature suggestion.

– prem
Mar 22 at 11:23






I am not getting any constructor signature suggestion.

– prem
Mar 22 at 11:23














Press F12 on it and look at the metadata

– NibblyPig
Mar 22 at 11:30





Press F12 on it and look at the metadata

– NibblyPig
Mar 22 at 11:30




1




1





There's a clue! The constructor may be private. Therefore to construct an instance of it there could be a static method, e.g. AdvancedColorInfo.Create() or it could be derived from another class.

– NibblyPig
Mar 22 at 13:38





There's a clue! The constructor may be private. Therefore to construct an instance of it there could be a static method, e.g. AdvancedColorInfo.Create() or it could be derived from another class.

– NibblyPig
Mar 22 at 13:38












1 Answer
1






active

oldest

votes


















1














To get an AdvancedColorInfo you don't new them up directly.



Instead, you need to:



var displayInfo = DisplayInformation.GetForCurrentView();
var colorInfo = displayInfo.GetAdvancedColorInfo();
var isHDRSupported = colorInfo.IsHdrMetadataFormatCurrentlySupported(yourFormatPassInHere);


The first method call is a static call to get the DisplayInformation. The second is to get the AdvancedColorInfo from the DisplayInformation.






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298099%2fi-am-trying-to-use-the-advancedcolorinfo-class-but-cant-work-out-how-to-instan%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    To get an AdvancedColorInfo you don't new them up directly.



    Instead, you need to:



    var displayInfo = DisplayInformation.GetForCurrentView();
    var colorInfo = displayInfo.GetAdvancedColorInfo();
    var isHDRSupported = colorInfo.IsHdrMetadataFormatCurrentlySupported(yourFormatPassInHere);


    The first method call is a static call to get the DisplayInformation. The second is to get the AdvancedColorInfo from the DisplayInformation.






    share|improve this answer



























      1














      To get an AdvancedColorInfo you don't new them up directly.



      Instead, you need to:



      var displayInfo = DisplayInformation.GetForCurrentView();
      var colorInfo = displayInfo.GetAdvancedColorInfo();
      var isHDRSupported = colorInfo.IsHdrMetadataFormatCurrentlySupported(yourFormatPassInHere);


      The first method call is a static call to get the DisplayInformation. The second is to get the AdvancedColorInfo from the DisplayInformation.






      share|improve this answer

























        1












        1








        1







        To get an AdvancedColorInfo you don't new them up directly.



        Instead, you need to:



        var displayInfo = DisplayInformation.GetForCurrentView();
        var colorInfo = displayInfo.GetAdvancedColorInfo();
        var isHDRSupported = colorInfo.IsHdrMetadataFormatCurrentlySupported(yourFormatPassInHere);


        The first method call is a static call to get the DisplayInformation. The second is to get the AdvancedColorInfo from the DisplayInformation.






        share|improve this answer













        To get an AdvancedColorInfo you don't new them up directly.



        Instead, you need to:



        var displayInfo = DisplayInformation.GetForCurrentView();
        var colorInfo = displayInfo.GetAdvancedColorInfo();
        var isHDRSupported = colorInfo.IsHdrMetadataFormatCurrentlySupported(yourFormatPassInHere);


        The first method call is a static call to get the DisplayInformation. The second is to get the AdvancedColorInfo from the DisplayInformation.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 22 at 21:42









        mjwillsmjwills

        16k52644




        16k52644





























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55298099%2fi-am-trying-to-use-the-advancedcolorinfo-class-but-cant-work-out-how-to-instan%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript