title: drawing graphic border around any shape(heart, circle etc) in flex,as3
body: <p>Well from last few months, i am looking for one solution, but couldn't find the exact answer to this question</p>
  
  <p>The problem is :</p>
  
  <p>Suppose i have this image with me(shown below), and i have to show a inner border around this image and i think showing border around this would be best through graphics, </p>
  
  <p>but graphics has some limited number of functions like drawRect, drawRoundedRect etc, </p>
  
  <p>I also have seen Path.as from Senocular.com, </p>
  
  <p>The thing which i want to know, is it possible to draw a inner border around this shape or any other irregular shape(through graphics, i need to find the border pixels around the image, i guess), </p>
  
  <p>i don't want to use any dotted line(another image over this image) as a border, i know thats a solution, :-), but this time things are pretty based on calculation, so any one of you have any working algorithm or any things like that which could let me draw dotted border around any sort of shape, that would be much helpful, </p>
  
  <p>I am flex developer, so i should tell you this image is in some canvas, i am drawing the bitmap data of this image in to the canvas</p>
  
  <p>Thank You</p>
  
  <p><img src="https://i.stack.imgur.com/i7fOR.png" alt="enter image description here"></p>