|
Tesseract 3.01
|
Static Public Member Functions | |
| static void | createImage (String name, int width, int height, int bitsPerPixel) |
| static void | openImage (String location) |
| static PImage | getImage (String name) |
| static void | parseData (String inputLine) |
| static boolean | getReadImageData () |
| static int | getMissingRemainingBytes () |
Static Package Attributes | |
| static HashMap< String, PImage > | images = new HashMap<String, PImage>() |
| static boolean | readImageData = false |
| static String | imageName = null |
| static int | bytesRead = 0 |
| static int | bpp = 0 |
| static int | pictureArray [] |
| static int | bytePerPixel = 0 |
| static int | width = 0 |
| static int | height = 0 |
The ScrollViewImageHandler is a helper class which takes care of image processing. It is used to construct an Image from the message-stream and basically consists of a number of utility functions to process the input stream.
| static void com::google::scrollview::ui::SVImageHandler::createImage | ( | String | name, |
| int | width, | ||
| int | height, | ||
| int | bitsPerPixel | ||
| ) | [inline, static] |
Starts creation of a new image.
| static PImage com::google::scrollview::ui::SVImageHandler::getImage | ( | String | name | ) | [inline, static] |
Find the image corresponding to a given name
| static int com::google::scrollview::ui::SVImageHandler::getMissingRemainingBytes | ( | ) | [inline, static] |
Computes how many bytes of the image data are still missing
| static boolean com::google::scrollview::ui::SVImageHandler::getReadImageData | ( | ) | [inline, static] |
Returns whether we a currently reading image data or not
| static void com::google::scrollview::ui::SVImageHandler::openImage | ( | String | location | ) | [inline, static] |
Opens an Image from location. This means the image does not have to be actually transfered over the network. Thus, it is a lot faster than using the createImage method.
| location | The (local) location from where to open the file. This is also the internal name associated with the image (if you want to draw it). |
| static void com::google::scrollview::ui::SVImageHandler::parseData | ( | String | inputLine | ) | [inline, static] |
Gets called while currently reading image data. Decides, how to process it (which image type, whether all data is there).
int com::google::scrollview::ui::SVImageHandler::bpp = 0 [static, package] |
int com::google::scrollview::ui::SVImageHandler::bytePerPixel = 0 [static, package] |
int com::google::scrollview::ui::SVImageHandler::bytesRead = 0 [static, package] |
int com::google::scrollview::ui::SVImageHandler::height = 0 [static, package] |
String com::google::scrollview::ui::SVImageHandler::imageName = null [static, package] |
These are all values belonging to the image which is currently being read
HashMap<String, PImage> com::google::scrollview::ui::SVImageHandler::images = new HashMap<String, PImage>() [static, package] |
Stores a mapping from the name of the string to its actual image. It enables us to re-use images without having to load or transmit them again
int com::google::scrollview::ui::SVImageHandler::pictureArray[] [static, package] |
boolean com::google::scrollview::ui::SVImageHandler::readImageData = false [static, package] |
A global flag stating whether we are currently expecting Image data
int com::google::scrollview::ui::SVImageHandler::width = 0 [static, package] |