header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Venkatesan
Points:0
Posts:0

9/21/2010 9:37:48 AM

Title: Image rendering


Hi all..

I have a big image of a wall or house(for eg:). Now i need to select a portion of that image and put another image and would like to see how my image will look if i put in the wall.

Any idea how to do this one??



1
Kiney
Points: 600
Posts:0
9/24/2010 4:41:29 AM



Note down the selected area by mouse, by using the mouse down event and release event. Then you can draw a bitmap on the selected area. If its just color then you can simply fill it else you can copy the pixels from your source bitmap to the selected area using the bitmap class.


2
Venkatesan
Points: 0
Posts:0
9/24/2010 5:02:41 AM



Thanks kiney,

Can u provide a small code snippet for copying pixels from one image using bitmap and making it as another image??

3
Justin
Points: 600
Posts:0
9/24/2010 10:18:36 AM



see this example to copy pixel from a loaded image in flex
http://www.java2s.com/Code/Flash-Flex-ActionScript/Graphics/CopyingPixelsbitmapcopyPixelssourceBmpsrcRectdestPoint.htm


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 5+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions