public class ConciseBitmapFactory extends Object implements BitmapFactory
Constructor and Description |
---|
ConciseBitmapFactory() |
Modifier and Type | Method and Description |
---|---|
ImmutableBitmap |
complement(ImmutableBitmap b) |
ImmutableBitmap |
complement(ImmutableBitmap b,
int length) |
ImmutableBitmap |
intersection(Iterable<ImmutableBitmap> b)
Compute the intersection (bitwise-AND) of a set of bitmaps.
|
ImmutableBitmap |
makeEmptyImmutableBitmap() |
MutableBitmap |
makeEmptyMutableBitmap()
Create a new empty bitmap
|
ImmutableBitmap |
makeImmutableBitmap(MutableBitmap mutableBitmap) |
ImmutableBitmap |
mapImmutableBitmap(ByteBuffer b)
Given a ByteBuffer pointing at a serialized version of a bitmap,
instantiate an immutable mapped bitmap.
|
ImmutableBitmap |
union(Iterable<ImmutableBitmap> b)
Compute the union (bitwise-OR) of a set of bitmaps.
|
public MutableBitmap makeEmptyMutableBitmap()
BitmapFactory
makeEmptyMutableBitmap
in interface BitmapFactory
public ImmutableBitmap makeEmptyImmutableBitmap()
makeEmptyImmutableBitmap
in interface BitmapFactory
public ImmutableBitmap makeImmutableBitmap(MutableBitmap mutableBitmap)
makeImmutableBitmap
in interface BitmapFactory
public ImmutableBitmap mapImmutableBitmap(ByteBuffer b)
BitmapFactory
mapImmutableBitmap
in interface BitmapFactory
b
- the input byte bufferpublic ImmutableBitmap union(Iterable<ImmutableBitmap> b) throws ClassCastException
BitmapFactory
union
in interface BitmapFactory
b
- input ImmutableGenericBitmap objectsClassCastException
- if one of the ImmutableGenericBitmap objects if not an instance
of WrappedImmutableConciseBitmappublic ImmutableBitmap intersection(Iterable<ImmutableBitmap> b) throws ClassCastException
BitmapFactory
intersection
in interface BitmapFactory
b
- input ImmutableGenericBitmap objectsClassCastException
- if one of the ImmutableGenericBitmap objects if not an instance
of WrappedImmutableConciseBitmappublic ImmutableBitmap complement(ImmutableBitmap b)
complement
in interface BitmapFactory
public ImmutableBitmap complement(ImmutableBitmap b, int length)
complement
in interface BitmapFactory
Copyright © 2011–2017. All rights reserved.