简体   繁体   中英

Can not access the mBuffer of android.graphics.Bitmap

I use the following code:

Bitmap myBmp = Bitmap.createBitmap( 720, 1280, Config.ARGB_8888 );
byte []data = myBmp.mBuffer ????

But I found that mBuffer can not be accessed. And there is no hint that it can not be accessed in Eclipse. What is the problem?

If you want access to the pixels, use

Bitmap.getPixel(int,int) 

and

Bitmap.setPixel(int,int)

Is this what you want to do?

EDIT: The 'problem' is the Java annotation @hide which hides the member annotated from code completion and induces errors which stop eclipse from compiling.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM