How to change the position of the x and y of the background?
view background BitmapTextureSoftware: Away3D 4.x |
||
|
||
careca, Newbie
Posted: 26 June 2012 08:32 PM Total Posts: 14 [ # 1 ] I have an image with 1280 * 720 and want to use as background. But it always gives me invalid size. var backgroundBitmapdata: BitmapData = new BitmapData (2048, 2048, true, 00999999) I want the background to occupy the whole stage. |
||
|
||
|
||
careca, Newbie
Posted: 26 June 2012 11:12 PM Total Posts: 14 [ # 4 ] my application is 1280 * 720. But now it is not possible to do this |
||
theMightyAtom, Sr. Member
Posted: 27 June 2012 08:02 AM Total Posts: 669 [ # 5 ] You want to make a bitmapData that is 2048 x 2048. Load your image, scale it, and draw it into your BitmapData(2048,2048). Good Luck! |
||
Richard Olsson, Administrator
Posted: 27 June 2012 08:03 AM Total Posts: 1192 [ # 6 ] Just resize your background to 2048x2048 (or 1024x1024) and draw it into a bitmap data of that size. Then use that bitmap data for the background texture. |