Another way you can do this is by using a combination of the BitmapData.draw method and the Rectangle object. Technically you could draw a part of an image delimited in coordinates by the Rectangle object directly in another bitmap. This might be a bit faster than coming pixel per pixel your image.
Oh, here's a penny on the floor, have it! -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: December 1, 2005 8:15 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Tile Bitmap Aye, but that's at authortime, not runtime. ----- Original Message ----- From: "Mick Gow" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> Sent: Thursday, December 01, 2005 7:59 PM Subject: Re: [Flashcoders] Tile Bitmap You can also do this in early flash versions (non code) by breaking apart an image, then use the eyedropper over the bitmap and you can then fill any vector shape with the bitmap fill. On 12/2/05, JesterXL <[EMAIL PROTECTED]> wrote: > > Damn, good find, had no clue that was there. ...well, there goes 2 weeks > worth of code I thought was cool... > > ----- Original Message ----- > From: "David Rorex" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> > Sent: Thursday, December 01, 2005 6:05 PM > Subject: Re: [Flashcoders] Tile Bitmap > > > What about MovieClip.beginBitmapFill() ? > > "Fills a drawing area with a bitmap image. The bitmap can be repeated > or tiled to fill the area." > > -David R > > On 12/1/05, JesterXL <[EMAIL PROTECTED]> wrote: > > Yeah man, it's mainly done via BitmapData.copyPixels. That function is > so > > fast. Go look in the ActionScript help in Flash 8, and look at > > BitmapData.copyPixels; there is some example code at the bottom. > > Basically, > > you copy pixels from an area, defined by a rectangle, to a certain > point. > > You can repeat copypixels over and over, say a forloop, to continually > > copy > > pixels, and continually paint to a bitmap... think if you constantly > > redraw > > using the paint tool in Fireworks/Photoshop. > > > > ----- Original Message ----- > > From: "John Giotta" <[EMAIL PROTECTED]> > > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com> > > Sent: Thursday, December 01, 2005 4:10 PM > > Subject: [Flashcoders] Tile Bitmap > > > > > > I saw a Flash 8 example that will allow you to draw a small bitmap and > > then tile it. > > > > Was this done with BitmapData.clone? I'd like some pointers if anyone > > could help out. > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders