I am developer of a Direct2D game. I want to turn on Auto HDR function on Windows 11 and HDR-compatible display.
Using Unity engine, there is nothing to do for developer to enable Auto HDR. If user just turns on Auto HDR in Windows settings, it seems to work. But, raw Direct2D application doesn't seem to work.
Is there an API for enabling Auto HDR on Direct2D application?
Related
I am developing Windows form application using C#. I found that this application is scaled correctly if I used the default scaling offered by Windows 10 (100%, 125%, 150%). But if I used the custom scaling like 110%, 115%, 135%,... the application gone bad. You can see the picture bellow (left is 125% and right is 135%).
What I have tried so far: enabled dpi awareness, set AutoResizeMode to none/dpi/font, but didn't work.
Is there anyway I can prevent the Windows from breaking my application if the custom scaling is enabled? I know the Winform is old and also maybe its the Windows problem itself, but any advices will be appreciated.
Im trying to develop an app for Windows 10 which I hope to submit to the store. I want to get access to the Taskbar APIs so I can set the progress level (green bar behind the process text).
In Windows 7 I used the some of these APIs:
https://msdn.microsoft.com/en-us/library/windows/desktop/dd391692(v=vs.85).aspx
They were wrapped by this handy library which I used in my C# app:
http://blogs.microsoft.co.il/sasha/2009/02/12/windows-7-taskbar-apis/
I cant find the equvilant for UWA Desktop Extension, Any ideas?
Mike
Basically the images are comes from the app asserts, see this: Guidelines for app assets Target-based assets session for more information. The asserts are the read-only stuff and we cannot programmatically change from the code, which means we cannot create the animation on taskbar.
The APIs like ITaskbarList3 are not available in Windows Universal App.
Basically base on my understanding, Microsoft wants to use push notification/live tile also badge to deliver the current state like current progress.
I`m trying to make an windows phone 8 app which simply allow you to click a button which result in start recording and showing any visualization that indicate that its recording something like a bar or a vu meter , I managed to make the recording part, now i dont know what type of projects i should use to support making such visualization.
does Windows phone 8 apps support using XNA to draw in a box inside a xaml file ?
what is the tag i can use to draw inside using XNA code ?
If you're targeting WP8 you can't use the hybrid SL/XNA model. That said, you can certainly use a Hybrid solution that draws using DirectX. You can find general information here and a sample here (note that it uses DrawingSurfaceBackgroundGrid, you probably want DrawingSurface).
So I am trying to develop a WPF app that will allow me to turn off the auto zoom and auto focus abilities of my webcam. I'm using the Emgu c# wrapper for opencv and want to be able to do frame differencing without my camera auto focusing when an object comes into the screen.
I have tried looking for an sdk that would allow me to develop something like this but apparently logitech ditched theirs a couple of years ago. I am using an HD pro Webcam c920. I have heard that maybe you can use the dll's that shipped with it to tweak the options but I have no idea how to do this.
Any help would be awesome.
Logitech HD Pro Webcam C920's Zoom, Exposure, Focus can be controlled using DirectShow API. Chances are high that Emgu CV is using DirectShow to capture (always, or as an option), or at least you possibly can set the camera up using DirectShow and the settings would survive restart of streaming sessions.
C920's properties are available using IAMCameraControl interface. It is documented on MSDN for native development, and DirectShow.NET offers respective definitions for .NET.
We have an HTC handset running Windows Mobile 6.1. Is there a way to increase/decrease screen brightness for this device programmatically?
The application is being developed in C#, so a .NET wrapper would be preferable, but an unmanaged API would also be acceptable.
Also, how can we turn the screen on/off to save battery while a particular application is running?
You would use the power management APIs to change the backlight settings. Also the WinMo 5 SDKs ship with a sample application called Power Manager that demonstrates how to programmatically change the state of the backlight. It's in C, but is pretty straightforward to port.