|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object maslab.telemetry.channel.Channel maslab.telemetry.channel.ImageChannel
public class ImageChannel
Channel for publishing images to the BotClient.
Constructor Summary | |
---|---|
ImageChannel(java.lang.String name)
Create a new ImageChannel with compression off and downsampling=1. |
|
ImageChannel(java.lang.String name,
boolean compression)
Create a new ImageChannel. |
|
ImageChannel(java.lang.String name,
boolean compression,
int downsampling)
Create a new ImageChannel. |
Method Summary | |
---|---|
void |
publish(java.awt.image.BufferedImage img)
Send an image to the BotClient, if any BotClient is connected and subscribing to this channel. |
Methods inherited from class maslab.telemetry.channel.Channel |
---|
addCommandListener |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageChannel(java.lang.String name)
name
- The channel name.public ImageChannel(java.lang.String name, boolean compression)
name
- The channel name.compression
- If true, JPEG compression will be used. If
false, no compression will be used. JPEG compression can be
computationally expensive, but reduces bandwidth usage.
Actually I'm lying, JPEG compression is completely disabled to
make this code gcj-compatible.public ImageChannel(java.lang.String name, boolean compression, int downsampling)
name
- The channel name.compression
- If true, JPEG compression will be used. If
false, no compression will be used. JPEG compression can be
computationally expensive, but reduces bandwidth usage.
Actually I'm lying, JPEG compression is completely disabled to
make this code gcj-compatible.downsampling
- Amount of downsampling to perform. 1
means no downsampling. See maslab.util.ImageUtil.downSample()
for more info.Method Detail |
---|
public void publish(java.awt.image.BufferedImage img)
img
- The image to send.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |