19 camera viewfinder renders its content to a graphics surface which is displayed |
19 camera viewfinder renders its content to a graphics surface which is displayed |
20 in a window by setting it as the background surface. To mirror the viewfinder |
20 in a window by setting it as the background surface. To mirror the viewfinder |
21 content, first flip the surface and then rotate it by 180°. </p> |
21 content, first flip the surface and then rotate it by 180°. </p> |
22 <fig id="GUID-87C0B943-81DC-5AB8-BD08-254811F511B5"> |
22 <fig id="GUID-87C0B943-81DC-5AB8-BD08-254811F511B5"> |
23 <title> Mirroring </title> |
23 <title> Mirroring </title> |
24 <image href="GUID-7F0EC737-F5EE-5B58-B9EB-4D8A058E3A49_d0e200429_href.jpg" placement="inline"/> |
24 <image href="GUID-7F0EC737-F5EE-5B58-B9EB-4D8A058E3A49_d0e195421_href.jpg" placement="inline"/> |
25 </fig> |
25 </fig> |
26 <p>The following example code assumes that the surface already exists. Call <xref href="GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA.dita#GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA/GUID-F42D5405-2144-34AB-B3FE-C1D76C2A3B31"><apiname>TSurfaceConfiguration::SetFlip()</apiname></xref> to |
26 <p>The following example code assumes that the surface already exists. Call <xref href="GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA.dita#GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA/GUID-F42D5405-2144-34AB-B3FE-C1D76C2A3B31"><apiname>TSurfaceConfiguration::SetFlip()</apiname></xref> to |
27 flip the surface, then call <xref href="GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA.dita#GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA/GUID-A7CC9BAA-301D-3006-AAA8-6549B163A448"><apiname>TSurfaceConfiguration::SetOrientation()</apiname></xref> to |
27 flip the surface, then call <xref href="GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA.dita#GUID-59A10068-E37A-37CF-85C9-36D8DA6619FA/GUID-A7CC9BAA-301D-3006-AAA8-6549B163A448"><apiname>TSurfaceConfiguration::SetOrientation()</apiname></xref> to |
28 rotate the flipped surface by 180°. Finally bind the surface to the window. |
28 rotate the flipped surface by 180°. Finally bind the surface to the window. |
29 If necessary, set attributes such as extent to the surface configuration. </p> |
29 If necessary, set attributes such as extent to the surface configuration. </p> |