Solved

Round Corner in BitmapData

Posted on 2009-05-14
2
525 Views
Last Modified: 2013-11-11
I am working with the BitmapData of the flex, and now I want to make a image round corner but related to this there is no corner radius in either loader control or Bitmapdata.If any one have any idea I will appriciate.




Thnx in Advance
Shardul Singh Bartwal
0
Comment
Question by:shardul_bartwal
2 Comments
 
LVL 6

Accepted Solution

by:
biyik earned 500 total points
ID: 24393272
Hi!
May be this is not a true answer for your question but why don't you draw a mask with the Graphic class, instead of using BitmapData class?

You can use the drawRoundRect () method to create a rounded rectangle ( public function drawRoundRect(x:Number, y:Number, width:Number, height:Number, ellipseWidth:Number, ellipseHeight:Number = NaN):void ) and mask your images with it.
0
 

Author Closing Comment

by:shardul_bartwal
ID: 31581810
Not able to understand
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
doubt future Flex 4 438
Software Restriction Policy 8 882
Youtube video error 30 841
Can't play streaming video on event.on24.com 7 415
This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question