blip  0.1
JavaBitmap Class Reference

#include <JavaBitmap.hpp>

Public Types

enum  Format {
  Format_None = 0, Format_RGBA_8888 = 1, Format_RGB_565 = 4, Format_RGBA_4444 = 7,
  Format_A_8 = 8
}
 

Public Member Functions

 JavaBitmap (JNIEnv *env, jobject jbitmap)
 
 ~JavaBitmap ()
 
bool lockPixels ()
 
bool unlockPixels ()
 
bool isValid () const
 
byte_t * getData ()
 
const byte_t * getData () const
 
uint32_t getWidth () const
 
uint32_t getHeight () const
 
uint32_t getRowStride () const
 
Format getFormat () const
 
const ccxx::Flags< uint32_t > getFlags () const
 

Detailed Description

Author
Mark Lindner

Member Enumeration Documentation

◆ Format

enum Format
Enumerator
Format_None 
Format_RGBA_8888 
Format_RGB_565 
Format_RGBA_4444 
Format_A_8 

Constructor & Destructor Documentation

◆ JavaBitmap()

JavaBitmap ( JNIEnv *  env,
jobject  jbitmap 
)

◆ ~JavaBitmap()

~JavaBitmap ( )

Member Function Documentation

◆ getData() [1/2]

byte_t* getData ( )
inline

◆ getData() [2/2]

const byte_t* getData ( ) const
inline

◆ getFlags()

const Flags< uint32_t > getFlags ( ) const

◆ getFormat()

JavaBitmap::Format getFormat ( ) const

◆ getHeight()

uint32_t getHeight ( ) const

◆ getRowStride()

uint32_t getRowStride ( ) const

◆ getWidth()

uint32_t getWidth ( ) const

◆ isValid()

bool isValid ( ) const
inline

◆ lockPixels()

bool lockPixels ( )

◆ unlockPixels()

bool unlockPixels ( )

The documentation for this class was generated from the following files: