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 am trying to make a Xml Image Menu that on button click goes
I need a very simple(*) image editor made in Flash so the users of
I'm trying to mix six sound clips together. Imagine each clip is a single
I'm playing an audio clip using a UIButton that calls a method (see code
I'm trying to output the following each time a function is run: <object id=video
I'm trying to use the infinite scroll AS3 I discuss in this SO question
I'm trying to make a more sophisticated drawing of a UILabels (or a UIView,
I am trying to retrieve some information about any given webpage (namely the of
edit2: Well I found out what was wrong. answered my own question. * Face-palm*
Sorry, I am still new using jquery so this might be an easy question.

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.