public class AlbumArt extends Object
Represents album artwork associated with tracks loaded into players on a DJ Link network, and provides a convenience method for getting a buffered image for drawing the art.
| Modifier and Type | Field and Description |
|---|---|
DataReference |
artReference
The unique artwork identifier that was used to request this album art.
|
| Constructor and Description |
|---|
AlbumArt(DataReference artReference,
ByteBuffer rawBytes)
Constructor usable by caching mechanism simply sets the immutable value fields.
|
AlbumArt(DataReference artReference,
File file)
Constructor used with a file downloaded via NFS by Crate Digger.
|
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
getImage()
Given the byte buffer containing album art, build an actual image from it for easy rendering.
|
ByteBuffer |
getRawBytes()
Get the raw bytes of the artwork image as returned by the player.
|
String |
toString() |
public final DataReference artReference
public AlbumArt(DataReference artReference, File file) throws IOException
artReference - the unique database reference that was used to request this artworkfile - the file of image data as loaded from the playerIOException - if there is a problem reading the filepublic AlbumArt(DataReference artReference, ByteBuffer rawBytes)
artReference - the unique database reference that was used to request this artworkrawBytes - the bytes of image data as loaded from the player or media exportpublic ByteBuffer getRawBytes()
public BufferedImage getImage()
Copyright © 2016–2019 Deep Symmetry, LLC. All rights reserved.