|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.layer.link.LinkBitmap
public class LinkBitmap
Reading and writing the Link protocol version of a bitmap..
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
LinkBitmap()
|
|
| Method Summary | |
|---|---|
static OMBitmap |
read(java.io.DataInputStream dis)
Read a Bitmap off a DataInputStream. |
static OMBitmap |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read a Bitmap off a DataInputStream. |
static void |
write(float lt,
float ln,
int w,
int h,
byte[] bytes,
LinkProperties properties,
java.io.DataOutputStream dos)
Lat/Lon placement. |
static void |
write(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
byte[] bytes,
LinkProperties properties,
java.io.DataOutputStream dos)
Lat/lon placement with XY offset. |
static void |
write(int x1,
int y1,
int w,
int h,
byte[] bytes,
LinkProperties properties,
java.io.DataOutputStream dos)
XY placement. |
static void |
write(OMBitmap bitmap,
Link link,
LinkProperties props)
Write a bitmap to the link. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinkBitmap()
| Method Detail |
|---|
public static void write(float lt,
float ln,
int w,
int h,
byte[] bytes,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
lt - latitude of the top of the image.ln - longitude of the left side of the image.w - width of the image, in pixels.h - height of the image, in pixels.bytes - bytes for the bitmap.properties - attributes for the bitmap.dos - DataOutputStream.
java.io.IOException
public static void write(int x1,
int y1,
int w,
int h,
byte[] bytes,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
x1 - window location of the left side of the image.y1 - window location of the top of the image.w - width of the image, in pixels.h - height of the image, in pixels.bytes - bytes for the bitmap.properties - attributes for the bitmap.dos - DataOutputStream.
java.io.IOException
public static void write(float lt,
float ln,
int offset_x1,
int offset_y1,
int w,
int h,
byte[] bytes,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
lt - latitude of the top of the image, before the offset.ln - longitude of the left side of the image, before the offset.offset_x1 - number of pixels to move image to the right.offset_y1 - number of pixels to move image down.w - width of the image, in pixels.h - height of the image, in pixels.bytes - bytes for the bitmap.properties - attributes for the bitmap.dos - DataOutputStream.
java.io.IOException
public static void write(OMBitmap bitmap,
Link link,
LinkProperties props)
throws java.io.IOException
java.io.IOException
public static OMBitmap read(java.io.DataInputStream dis)
throws java.io.IOException
dis - DataInputStream to read from.
java.io.IOExceptionOMBitmap
public static OMBitmap read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
throws java.io.IOException
dis - DataInputStream to read from.propertiesBuffer - a LinkProperties object used to cache previous
settings that can be set on the OMPoly being read.
java.io.IOExceptionOMBitmap
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||