TinyLine 2.5

com.tinyline.svg
Interface ImageLoader


public interface ImageLoader

The ImageLoader interface. Different Java profiles have different methods to load raster images. This interface is wrapper that hides such differences.

Version:
1.5

Method Summary
 TinyBuffer createTinyBuffer(byte[] imageData, int imageOffset, int imageLength)
          Creates a TinyBuffer which decodes the image stored in the specified byte array, and at the specified offset and length.
 TinyBuffer createTinyBuffer(TinyString imgRef)
          Returns a TinyBuffer for the given image URL or path.
 

Method Detail

createTinyBuffer

TinyBuffer createTinyBuffer(byte[] imageData,
                            int imageOffset,
                            int imageLength)
Creates a TinyBuffer which decodes the image stored in the specified byte array, and at the specified offset and length.

Parameters:
imageData - an array of bytes, representing image data in a supported image format.
imageOffset - the offset of the beginning of the data in the array.
imageLength - the length of the data in the array.
Returns:
a TinyBuffer object.

createTinyBuffer

TinyBuffer createTinyBuffer(TinyString imgRef)
Returns a TinyBuffer for the given image URL or path.

Parameters:
imgRef - The image URL or path.
Returns:
a TinyBuffer object which gets its pixel data from the specified URL or path.

TinyLine 2.5

Provided under the terms of the TinyLine License Agreement that has been included with this distribution.