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 6803979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:24:37+00:00 2026-05-26T19:24:37+00:00

Well from last few months, i am looking for one solution, but couldn’t find

  • 0

Well from last few months, i am looking for one solution, but couldn’t find the exact answer to this question

The problem is :

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,

but graphics has some limited number of functions like drawRect, drawRoundedRect etc,

I also have seen Path.as from Senocular.com,

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),

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,

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

Thank You

enter image description here

  • 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-26T19:24:38+00:00Added an answer on May 26, 2026 at 7:24 pm

    You could use the simple getBounds or getBoundsRect properties if your symbols are pretty basic (not masked). If they’re more complex, you might find this useful:

    public function getFullBounds ( displayObject:DisplayObject ) :Rectangle
    {
        var bounds:Rectangle, transform:Transform, toGlobalMatrix:Matrix, currentMatrix:Matrix;
        transform = displayObject.transform;
        currentMatrix = transform.matrix;
        toGlobalMatrix = transform.concatenatedMatrix;
        toGlobalMatrix.invert();
        transform.matrix = toGlobalMatrix;
        bounds = transform.pixelBounds.clone();
        transform.matrix = currentMatrix;
        return bounds;
    }
    

    Care of: http://usecake.com/lab/find-the-height-and-width-of-a-sprite-with-a-scrollrect.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well is there? From everything I've read, it seems like the answer is no,but
I am flex developer, and from last few months, i am continuously working on
I have previously read Spolsky's article on character-encoding, as well as this from dive
Well, I was trying to select rows from one table if there are no
Well, This is a string I get from a web service: Tuesday, March 30,
Here's one from the No question's too dumb department: Well, as the subject says:
GCC is a very well respected multi-language compiler (from what I've gathered). One thing
In last few hours I've read a lot concerning this topic, and so far
Last Updated: 2009-08-11 2:30pm EDT A few days ago I posted this question about
From what I've read, this topic has come up several times over the last

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.