public class RMFlashBuffer extends RMData
Constructor and Description |
---|
RMFlashBuffer() |
Modifier and Type | Method and Description |
---|---|
int |
bitsNeededForInt(int aValue)
Returns the minimun number of bits required to display given int value.
|
int |
bitsNeededForRect(RMRect aRect)
Returns the minimun number of bits required to display given rect.
|
int |
bitsNeededForUInt(long aValue)
Returns the minimun number of bits required to display given long value.
|
void |
padToByteBoundary()
Marks the remaining bits in the last byte to used.
|
void |
writeColor(RMColor aColor)
Writes flash for a color.
|
void |
writeColorTransform(RMColor c1,
RMColor c2,
float anOpacity)
Writes a flash color transform from color 1 to color 2 with given opacity.
|
void |
writeColorWithAlpha(RMColor aColor)
Writes flash for a color with alpha.
|
void |
writeFillStyle(RMColor aColor)
Writes the given color as a solid fill style.
|
void |
writeLineStyle(RMColor aColor,
float lineWidth)
Writes the given color and line with as a line style.
|
void |
writeMatrix(float a,
float b,
float c,
float d,
float tx,
float ty)
Write the given transform components.
|
void |
writeRect(RMRect aRect)
Writes the given rect (Nbits UB5, Xmin, Xmax, Ymin, Ymax).
|
void |
writeSB(int bits,
long value)
Write the given signed long value out using exactly the given number of bits.
|
void |
writeSB16(int val)
Writes the given int value as a signed 16 bit value.
|
void |
writeSB9(int val)
Writes the given int value as a signed 9 bit value.
|
void |
writeSI16(int val)
Writes the given int value as a signed 16 bit value.
|
void |
writeUB(int bits,
long value)
Write the given unsigned long value out using exactly the given number of bits.
|
void |
writeUB1(int val)
Writes the given int value as an unsigned 1 bit value.
|
void |
writeUB2(int val)
Writes the given int value as an unsigned 2 bit value.
|
void |
writeUB3(int val)
Writes the given int value as an unsigned 3 bit value.
|
void |
writeUB4(int val)
Writes the given int value as an unsigned 4 bit value.
|
void |
writeUB5(int val)
Writes the given int value as an unsigned 5 bit value.
|
void |
writeUB7(int val)
Writes the given int value as an unsigned 7 bit value.
|
void |
writeUB8(int val)
Writes the given int value as an unsigned 8 bit value.
|
void |
writeUI16(int val)
Writes the given int value as an unsigned 16 bit value.
|
void |
writeUI32(long val)
Writes the given long value as an unsigned 32 bit value.
|
void |
writeUI8(int value)
Writes the given int value as an unsigned 8 bit value.
|
append, append, append, append, append, append, append, append, append, append, append, appendByte, appendInt, appendLittleInt, appendLittleShort, appendLittleUInt, appendLittleUShort, appendShort, appendUByte, byteAt, capacity, clone, ensureCapacity, equals, flateCompressedData, getBytes, getBytes, getBytes, getData, initWithArchiver, inputStream, insert, insert, insert, insertLittleUIntAtIndex, length, replace, setLittleIntAtIndex, setLittleShortAtIndex, setLittleUShortAtIndex, toByteArray, toByteArray, toString, toString, writeToFile
copy, didChange, didUndo, getAnimAttribute, getClassNameShort, undoClone, undoCopy, undoEquals
public void writeUB(int bits, long value)
public void writeSB(int bits, long value)
public void writeUI8(int value)
public void writeUI16(int val)
public void writeUI32(long val)
public void writeSI16(int val)
public void writeUB1(int val)
public void writeUB2(int val)
public void writeUB3(int val)
public void writeUB4(int val)
public void writeUB5(int val)
public void writeUB7(int val)
public void writeUB8(int val)
public void writeSB9(int val)
public void writeSB16(int val)
public void writeRect(RMRect aRect)
public void writeMatrix(float a, float b, float c, float d, float tx, float ty)
public void writeColor(RMColor aColor)
public void writeColorWithAlpha(RMColor aColor)
public void writeColorTransform(RMColor c1, RMColor c2, float anOpacity)
public void writeFillStyle(RMColor aColor)
public void writeLineStyle(RMColor aColor, float lineWidth)
public int bitsNeededForUInt(long aValue)
public int bitsNeededForInt(int aValue)
public int bitsNeededForRect(RMRect aRect)
public void padToByteBoundary()