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??
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.
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??
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