Boga
Boga

Reputation: 371

Accessing camera in Wp7, with zoom

I'm creating an application for WP7 where the background of it (a grid) receives the image from the camera. Here is how it works:

XAML:

<Grid x:Name="ContentPanel" Grid.Row="1">
        <Grid.Background>
            <VideoBrush x:Name="video" />
        </Grid.Background>
</Grid>

C#:

Microsoft.Devices.PhotoCamera m_camera;

// Constructor
public MainPage()
{
InitializeComponent();

Loaded += (s, e) =>
    {
        m_camera = new Microsoft.Devices.PhotoCamera();
        video.SetSource(m_camera);
    };
}

My question: Is there a way to access the zoom options of the camera with this? Or can I define the source as the camera totally zoomed in or out?

Upvotes: 3

Views: 1206

Answers (1)

abhinav
abhinav

Reputation: 3217

Unfortunately, no. You can manipulate a higher resolution image to fill the background with only the part that you'd like to zoom in on. See resolution example here

Upvotes: 3

Related Questions