Read about BitmapData class. Regards, Venkat www.venkatv.com
On Tue, Dec 23, 2008 at 10:36 AM, pradeep.pa...@gmail.com < pradeep.pa...@gmail.com> wrote: > > Hi, > I wanted to draw an external .jpg/.png/.gif image file onto canvas not > loading. > I am strucked up this point: > > var img = new Image();-----------------(1) > img.load(assets/flower.jpg);----------(2) > //canvas.addChild(img);------------------(3) > in the last statement(3), i am displaying the image by adding that > image as child of the canvas. > But, i dont want that. > I wanted to draw that flower.jpg file on canvas. > > > Also, i must be able to (paint)annotate on that image > regards > pradeep > > On Dec 22, 9:26 pm, "Venkat Viswanathan" <helloven...@gmail.com> > wrote: > > Hi, > > > > What do you mean by "drawing"? Do you mean loading the image from an > > external jps/gif/png inside a canvas? In that case, you can use the Image > > class and specify the url of the image in the *source* property of the > Image > > object. > > > > Regards, > > Venkatwww.venkatv.com > > > > On Mon, Dec 22, 2008 at 2:30 PM, pradeep.pa...@gmail.com < > > > > pradeep.pa...@gmail.com> wrote: > > > > > Hi all, > > > I have an application where i need to draw an Image(.png, .jpg, .gif) > > > on canvas. > > > How to implement it?? > > > Any ideas?? > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---