actionscript 3 - AS3: ByteArray and BitmapData -


I'm doing a simple test, I want to write bitmap data in a byte array. I'm trying to write it with object () and readObject (). There is a problem understanding bitmap data for reading the object.

  var bytes: bytere = new bytere (); Var _cache: bitmapdata = new bitmap data (640, 480, true, 0x000000); Var _blank: bitmapdata = new bitmap data (640, 480, true, 0x000000); ByteArray.writeObject (_blank); Byteurer.edification = 0; _cache = byteArray.readObject () as Bitmapdata; Trace (_cache); // mark zero  

Can anyone clear this for me? I can not understand what is going wrong with the object I read (s)

I know that I can get this getPixels () and setPixels (), but I can see the object as an object I want to be treated here

You use the BitmapData :: getPixels and BitmapData :: SetPixels should ... Write a class example to a byte such as never expected to work completely ... Try with the Sprites ... :) ... This is mostly due to the fact That is, by default, in any way, only the object's property for IDataOutput ( ByteArray or socket ) ... pixels Any of BitmapData In that sense ... BitmapData is just an action script cover, which shows the interface some internal flash player data structure ...

> Bitmapata , which applies, so that you have control, whatever ... Essentially, you will only need to read / write the dimension, and the actual pixel payload ... maybe transparent flag ... Remember to use ...

Hello

back2dos


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -