you should avoid draw(), use as you do a source and destination bmd
but insteadd I would use copypixel and then apply filter or colortransform.

Fabrice

On Aug 30, 2009, at 3:28 PM, tain wrote:


is it possible to manipulate View3D bitmap data, like smooth scaling
or color transformation?

i tried few methods but i cant do it.

best result i got is to create new bitmap and bitmap data, then strech
bitmap data and redraw it (with clipped view3D) every frame.
but the bad side is that the View3D must be visible to read its bitmap
data.

i used it with this code:

//init

bmdbd=new BitmapData(100,100,true,0x00000000);
bmp=new Bitmap(bmdbd);
bmp.smoothing=true;
bmp.scaleX=bmp.scaleY=4;


//every frame

bmdbd.fillRect(new Rectangle(0, 0, 100, 100), 0x00000000);
bmdbd.draw(myView3D);



this is the result (i used Basic_Phong example for render):

http://ivan.zebra-ds.hr/3d/streched.html

Reply via email to