![]() Overall, this is the general process for handling changes in screen orientation: Time is allocated by Windows 10 to the app for layout in the new orientation. As the display orientation shifts, the user sees these shifts as a fixed zoom and rotation animation of the displayed screen image. When the display rotates from one orientation to another, Windows 10 internally performs a rotation operation to align the drawn image with the new orientation, and the user sees an upright image on the screen.Īlso, Windows 10 displays automatic transition animations to create a smooth user experience when shifting from one orientation to another. Portrait, flipped-the display has been rotated clockwise 270 degrees (or counter-clockwise 90 degrees).Landscape, flipped-the display has been rotated 180 degrees (turned upside-down).Portrait-the display has been rotated clockwise 90 degrees (or counter-clockwise 270 degrees).Landscape-the default display orientation for Windows 10, and is considered the base or identity angle for rotation (0 degrees).Windows 10 defines four specific display orientation modes: The default orientation is landscape, where the pixel width of the display is greater than the height the alternative orientation is portrait, where the display is rotated 90 degrees in either direction and the width becomes less than the height. For three of the four specific screen orientations (discussed later), Windows 10 uses additional graphic resources and computation to display the final image.įor UWP DirectX apps, the DisplayInformation object provides basic display orientation data that your app can query. ![]() When this happens, Windows 10 immediately rotates the image for final display. By default, your app receives the notification that something has changed in orientation, for example, a window size. Because of this, Windows 10 itself handles the rotation of the images to ensure they are "upright" based on the orientation of the device. Windows 10 devices can determine their current display orientation (with some sort of sensor, or with a software toggle) and allow users to change the display settings. Here, we'll discuss best practices for handling screen rotation in your UWP DirectX app, so that the Windows 10 device's graphics hardware are used efficiently and effectively.īefore you start, remember that graphics hardware always outputs pixel data in the same way, regardless of the orientation of the device. Your Universal Windows Platform (UWP) app can support multiple screen orientations when you handle the DisplayInformation::OrientationChanged event.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |