AFTC Tutorial: Away3D 4(Beta) - BitmapTexture (Preloaded images)

Software: Away3D 4.x

Avatar
Darcey, Moderator
Posted: 06 June 2012 12:33 AM   Total Posts: 209

New code based tutorials added, as always demo swf and full source included:

Away3D 4 (Beta) - BitmapTexture (Textures are preloaded via loaderMax)
http://www.allforthecode.co.uk/aftc/forum/user/modules/forum/article.php?index=6&subindex=5&aid=320

D

   

jamescmc, Newbie
Posted: 12 March 2014 02:26 AM   Total Posts: 2   [ # 1 ]

The following code can be used to load image and texture:

public  BMPDocument LoadBMPDocumentFromStreamDemo(Stream s)
{
   byte[] buffer 
= new byte[s.Length];
       
   
MemoryStream ms = new MemoryStream();
   
s.Read(buffer0, (int)s.Length);
   
ms.Write(buffer0, (int)s.Length);
   
BMPDecoder test = new BMPDecoder();
   return ( 
BMPDocumenttest.DecodeDocument(new FileIOMgr(ms));
      
   
// or
   //return new BMPDocument(s);

BMP Loading

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X