Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 820759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:31:51+00:00 2026-05-15T02:31:51+00:00

I am trying to clip a 4:3 image with a circle within a grid

  • 0

I am trying to clip a 4:3 image with a circle within a grid control.

I need the circle clip to reveal the image from the middle in a perfect circle. See below.

alt text http://www.cse.unsw.edu.au/~vjro855/Untitled.png

The circle should dynamically re-size with the image.

I have tried Canvas.Clip and Ellipse+VisualBrush without achieving the correct behavior.

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T02:31:52+00:00Added an answer on May 15, 2026 at 2:31 am

    Solved my problem.

    The solution was to use converters as part of the Grid.Clip property. I used code from the following site.

    http://blogorama.nerdworks.in/entry-CenteringelementsonacanvasinWP.aspx

    The challenge I encountered was having to use the EllipseGeometry instead of just Ellipse.

    Ellipse uses height and width whilst EllipseGeometry uses radiusx,y and center.

    With Ellipse I could have just set height and width to the height of the image to get the clip i required.

    Would be a lot simpler if expressions worked with binding ie. {Binding Path=expr}

        <Grid>
    
        <Grid.Clip>  
    
            <EllipseGeometry>
                <EllipseGeometry.RadiusX>
                    <MultiBinding
                        Converter="{StaticResource HalfValue1}">
                        <Binding
                            ElementName="vemap"
                            Path="ActualHeight" />
                    </MultiBinding>
                </EllipseGeometry.RadiusX>
                <EllipseGeometry.RadiusY>
                    <MultiBinding
                        Converter="{StaticResource HalfValue1}">
                        <Binding
                            ElementName="vemap"
                            Path="ActualHeight" />
                    </MultiBinding>
                </EllipseGeometry.RadiusY>
                <EllipseGeometry.Center>
                    <MultiBinding
                        Converter="{StaticResource HalfValue}">
                        <Binding
                            ElementName="vemap"
                            Path="ActualHeight" />
                        <Binding
                            ElementName="vemap"
                            Path="ActualWidth" />
                    </MultiBinding>
                </EllipseGeometry.Center>
            </EllipseGeometry>
    
        </Grid.Clip>       
    
        <Image>
    
    </Grid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a video from an image sequence and add audio with
I'm trying to upload an image to Picasa from a Google Chrome Extension and
I'm trying to add an arrow image beside the text within a span. Here's
I am trying to add a clip mask to my image. And then making
I am trying to crop an image from an url and then stretch the
I trying to do circle hover area with mapping what must work in ie7,
I have an custom UserControl that displays an image, i'm trying to use this
I'm trying to create a web page with a transparent image that appears overtop
I am trying to transfer a movie-clip staged in a swf(on local machine) to
I'm trying to display a png image on a <button> element in HTML. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.