croping bitmapData in flex
have a dummy bitmapData object of same diamnetions as ur source and another of what u want;
var bitmapData1:BitmapData = new BitmapData(100,100);
bitmapData = new BitmapData(50,50);
draw the whole source or part of source into bitmapData1
bitmapData1.draw(this,myMatrix,null,null,new Rectangle(0,0, 100, 100));
Copy required pixels from your dummy biitmap data
bitmapData.copyPixels(bitmapData1,new Rectangle(50, 50, 100, 100),new Point());
bitmapData1 = null;
* The same can be achived with 1 bitmapdata object also using matrix object.
(IDEA) how to create image of size >2500*2500 diamention
image height = 5000;
var number of images = Math.round( image height / 2000)
// result = 3
so we will create 3 images of dianmentions
1) (0,2000) * (0,2000)
2)(2000,4000)*(2000,4000)
3)(4000,5000)*(4000,5000)
you can create above diamention images after croping the unwanted area. (see how to crop in anothe post)
and combine the same using some server side lanugauge.
as soon as i make a proto type i will put it on web for refrence but this is the idea how we can achive this.
