Author Topic: How to Clip or Mask a Circular Region on a Visio Page?  (Read 40551 times)

0 Members and 1 Guest are viewing this topic.

david

  • Full Member
  • ***
  • Posts: 101
How to Clip or Mask a Circular Region on a Visio Page?
« on: November 18, 2008, 06:14:23 PM »
hi everybody,
i need to do something in visio that sounds pretty hard but maybe there's a simple solution to do that.
this is what i need to do:
i have a frame with many drawings.  i need to mask the frame with a circle so that i will always see the drawings only inside the circle.  outside the circle the frame should always be black no matter where the circle is.  in other words, i can see the drawings of the frame only through the circle.  and if i want to see what is drawn on the upper left corner of the frame i should move the circle to that corner.

i didn't find a way to do that.  anyone has an idea?  any kind of idea will be helpful.  i can write code if neccesary.

thanks in advance
David
« Last Edit: November 19, 2008, 06:28:56 AM by Visio Guy »

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3371
    • Paul Herber's website
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #1 on: November 18, 2008, 06:30:36 PM »
like this?
« Last Edit: November 19, 2008, 06:29:09 AM by Visio Guy »
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

david

  • Full Member
  • ***
  • Posts: 101
Re: hope anyone knows that
« Reply #2 on: November 19, 2008, 03:02:42 AM »
it's perfect!! just what i needed.

thank you very much!
David

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3371
    • Paul Herber's website
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #3 on: November 19, 2008, 03:14:43 AM »
Wapperdude has another solution that he'll be posting when his part of the world wakes up.


« Last Edit: November 19, 2008, 06:29:18 AM by Visio Guy »
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

david

  • Full Member
  • ***
  • Posts: 101
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #4 on: November 19, 2008, 03:31:31 AM »
excellent!

is there a possibility to allow the user changing the size of the external square? i don't see such a possibility in your example.  you can drag and change sizes only of the circle inside the square (which i btw changed to a little square).  i'd like to allow it also to the square (meaning that the square will not necessarily hide the whole frame).

thanks
David
« Last Edit: November 19, 2008, 06:29:23 AM by Visio Guy »

Paul Herber

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3371
    • Paul Herber's website
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #5 on: November 19, 2008, 03:38:45 AM »
Yes, my shape was very quick and dirty to get something before it got too late here.
Open the shapesheet for the shape (menu Window -> Show Shapesheet) and edit the geometry2 section, it's just a square +/- 1000mm, edit as you see fit. Maybe someone has time to make the shape more general.

« Last Edit: November 19, 2008, 06:29:28 AM by Visio Guy »
Electronic and Electrical engineering, business and software stencils and applications for Visio -

https://www.paulherber.co.uk/

david

  • Full Member
  • ***
  • Posts: 101
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #6 on: November 19, 2008, 04:41:09 AM »
that's not what i meant.
i know i can manually change the numbers in geometry2 to whatever i want.  i want to allow the USER to change the sizes of the outside square with the mouse.  just like he can change the sizes of the inside circle with the mouse.
« Last Edit: November 19, 2008, 06:29:34 AM by Visio Guy »

Visio Guy

  • Administrator
  • Hero Member
  • *****
  • Posts: 1737
  • Smart Graphics for Visual People...n' Stuff
    • Visio Guy
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #7 on: November 19, 2008, 06:30:20 AM »
This tackles the problem from the other side, so to speak:

Masking Images in Visio
For articles, tips and free content, see the Visio Guy Website at http://www.visguy.com
Get my Visio Book! Using Microsoft Visio 2010

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4840
  • Ideas Visio-lized into solutions
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #8 on: November 19, 2008, 10:30:44 AM »
Have a look at this -- changes size, selects between square and circle...
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4840
  • Ideas Visio-lized into solutions
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #9 on: November 19, 2008, 10:40:09 AM »
Ah!  I should have placed this on a separate stencil...that way it's available for drag and drop...re-post for convenience...
Visio 2019 Pro

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4840
  • Ideas Visio-lized into solutions
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #10 on: November 20, 2008, 11:03:50 AM »
Can't leave it alone .. better circle, variable aspect ratio  :o ;D
Visio 2019 Pro

david

  • Full Member
  • ***
  • Posts: 101
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #11 on: November 20, 2008, 01:18:48 PM »
thank you very much to everybody.  i used your examples in my work and as to the external square i added properties for the user so he can change the sizes of that square through the properties.  he can't do it with the mouse but still it works fine.

this forum is great! very very helpful.
thank you
David

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4840
  • Ideas Visio-lized into solutions
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #12 on: November 20, 2008, 03:52:34 PM »
Who's in charge of quality control around here?  The more features you add to something, the more that can go wrong, and the more test cases that should be run.  Sign.   :P  Found a bug with the MagicWindow if you go to landscape, circle.  Looks kinda funny actually.  Well, hopefully this fixes the problem...   :( 

Sorry, just feel compelled to get it right.  I'll stop with this entry though. 
Visio 2019 Pro

david

  • Full Member
  • ***
  • Posts: 101
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #13 on: November 21, 2008, 04:51:56 AM »
thanks man :).

wapperdude

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4840
  • Ideas Visio-lized into solutions
Re: How to Clip or Mask a Circular Region on a Visio Page?
« Reply #14 on: November 22, 2008, 11:45:05 AM »
OK.  I lied.  But it's Paul Herber's fault.  He made a couple of suggestions and provided some enthusiastic encouragement, so, here's an updated version that includes metric -- for those of you not lucky enough to live at the center of the universe, aka, California.   ;D
Visio 2019 Pro